ShoppingCartWriter
in package
Table of Contents
- $database : Connection
- $factory : CacheFactory
- __construct() : mixed
- Constructor.
- deleteCart() : void
- Removes the Cart items for a given Customer ID from the Database.
Properties
$database
private
Connection
$database
$factory
private
CacheFactory
$factory
Methods
__construct()
Constructor.
public
__construct(Connection $database, CacheFactory $factory) : mixed
Parameters
- $database : Connection
- $factory : CacheFactory
Return values
mixed —deleteCart()
Removes the Cart items for a given Customer ID from the Database.
public
deleteCart(CustomerId $customerId) : void
Parameters
- $customerId : CustomerId