Class SharedShoppingCartRepository
| category |
System |
|---|---|
| package |
SharedShoppingCart |
__construct(\SharedShoppingCartReader $reader, \SharedShoppingCartWriter $writer, \SharedShoppingCartDeleter $deleter)
deleteShoppingCartsByCustomerId(\IdType $customerId)
deleteShoppingCartsOlderThan(\DateTime $expirationDate)
\DateTimeAll shared shopping carts older than that date are expired
getShoppingCart(\StringType $shoppingCartHash) : string
stringJSON representation of the shopping cart
getShoppingCartsByCustomerId(\IdType $customerId) : \SharedShoppingCartCollection
storeShoppingCart(\StringType $jsonShoppingCart, \IdType|null $userId = null) : string
| Throws |
|
|---|
stringThe hash of the cart