Class SharedShoppingCartReader

Class SharedShoppingCartReader

SharedShoppingCartReader implements SharedShoppingCartReaderInterface

Methods summary

public __construct( CI_DB_query_builder $db )

SharedShoppingCartReader constructor.

public getShoppingCart( StringType $shoppingCartHash ) : string

Gets the content in JSON format of the shopping cart corresponding to the hash

public getShoppingCartsByCustomerId( IdType $customerId ) : SharedShoppingCartCollection

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

protected createSharedShoppingCartFromArray( array $rawShoppingCart ) : boolean|SharedShoppingCart

Creates a shared shopping cart instance from an array.

Properties summary

protected $db : CI_DB_query_builder