Class MinimalShoppingCartService

Class MinimalShoppingCartService

MinimalShoppingCartService implements ShoppingCartServiceInterface

Methods summary

public __construct( CI_DB_query_builder $db )

MinimalShoppingCartService constructor.

public deleteShoppingCartsByCustomerId( IdType $customerId )

Deletes all shopping carts from DB by a given customer ID.

public getShoppingCartsByCustomerId( IdType $customerId ) : ShoppingCartCollection

Gets a collection of all shopping carts by a given customer ID.

protected createSharedShoppingCartFromArray( array $rawShoppingCart ) : boolean|ShoppingCart

Creates a shopping cart instance from an array.

Properties summary

protected $db : CI_DB_query_builder