SharedShoppingCartWriter

Implements \SharedShoppingCartWriterInterface

Class SharedShoppingCartWriter

category

System

package

SharedShoppingCart

Methods

SharedShoppingCartWriter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Stores a shopping cart.

storeShoppingCart(\StringType $shoppingCartHash, \StringType $jsonShoppingCart, \IdType|null $userId = null) : $this|\SharedShoppingCartWriter

Arguments

$shoppingCartHash

\StringType

Hash of the shopping cart

$jsonShoppingCart

\StringType

JSON representation of the shopping cart

$userId

\IdType|null

Id of the user sharing the shopping cart

Response

$this|\SharedShoppingCartWriter

Same instance for chained method calls.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder