CoolCMS API

CartMapper
in package
implements CartMapperInterface

FinalYes

DB variant of the cart mapper.

Translates the wire shape of api/eshop/cart/load / /save ({items: list<{setId,quantity}>, vouchers: list<string>, checkout: array}) to and from CartSnapshot (items as a setId => quantity dict).

Table of Contents

Interfaces

CartMapperInterface
Translates between the raw storage (session section or Api wire payload) and {@see CartSnapshot}.

Properties

$repository  : CartRepository

Methods

__construct()  : mixed
load()  : CartSnapshot
save()  : void
toSnapshot()  : CartSnapshot

Properties

Methods

On this page

Search results