MinimalShoppingCartService

Implements \ShoppingCartServiceInterface

Class MinimalShoppingCartService

package

Default

Methods

MinimalShoppingCartService constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Creates a shopping cart instance from an array.

createSharedShoppingCartFromArray(array $rawShoppingCart) : boolean|\ShoppingCart
Throws
\InvalidArgumentException

Arguments

$rawShoppingCart

array

Response

boolean|\ShoppingCart

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

deleteShoppingCartsByCustomerId(\IdType $customerId) 

Arguments

$customerId

\IdType

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

getShoppingCartsByCustomerId(\IdType $customerId) : \ShoppingCartCollection

Arguments

$customerId

\IdType

Response

\ShoppingCartCollection

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder