Copied!

CartServiceDecorator

CartServiceDecorator.php : 21

Properties

protected $innerService

CartServiceDecorator.php : 23
protected CartServiceInterface $innerService

Methods

public__construct()

CartServiceDecorator.php : 25
public __construct(CartServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService CartServiceInterface - -

publicaddEntry()

CartServiceDecorator.php : 65
public addEntry(CartInterface $cart, EntryAddStruct $entryAddStruct) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$entryAddStruct EntryAddStruct - -

Return values

CartInterface

publiccreateCart()

CartServiceDecorator.php : 40
public createCart(CartCreateStruct $cartCreateStruct) : CartInterface

Parameters

Name Type Default value Description
$cartCreateStruct CartCreateStruct - -

Return values

CartInterface

publicdeleteCart()

CartServiceDecorator.php : 50
public deleteCart(CartInterface $cart) : void

Parameters

Name Type Default value Description
$cart CartInterface - -

publicemptyCart()

CartServiceDecorator.php : 55
public emptyCart(CartInterface $cart) : void

Parameters

Name Type Default value Description
$cart CartInterface - -

publicfindCarts()

CartServiceDecorator.php : 35
public findCarts([CartQuery|null $query = null ]) : CartListInterface

Parameters

Name Type Default value Description
$query CartQuery|null null -

Return values

CartListInterface

publicgetCart()

CartServiceDecorator.php : 30
public getCart(string $identifier) : CartInterface

Parameters

Name Type Default value Description
$identifier string - -

Return values

CartInterface

publicmergeCarts()

CartServiceDecorator.php : 83
public mergeCarts(CartInterface $targetCart, bool $deleteMergedCarts, CartInterface ...$cartsToMerge) : CartInterface

Parameters

Name Type Default value Description
$targetCart CartInterface - -
$deleteMergedCarts bool - -
$cartsToMerge CartInterface - -

Return values

CartInterface

publicremoveEntry()

CartServiceDecorator.php : 70
public removeEntry(CartInterface $cart, EntryInterface $entry) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$entry EntryInterface - -

Return values

CartInterface

publicupdateCartMetadata()

CartServiceDecorator.php : 45
public updateCartMetadata(CartInterface $cart, CartMetadataUpdateStruct $cartUpdateStruct) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$cartUpdateStruct CartMetadataUpdateStruct - -

Return values

CartInterface

publicupdateEntry()

CartServiceDecorator.php : 75
public updateEntry(CartInterface $cart, EntryInterface $entry, EntryUpdateStruct $entryUpdateStruct) : CartInterface

Parameters

Name Type Default value Description
$cart CartInterface - -
$entry EntryInterface - -
$entryUpdateStruct EntryUpdateStruct - -

Return values

CartInterface

publicvalidateCart()

CartServiceDecorator.php : 60
public validateCart(CartInterface $cart) : ConstraintViolationListInterface

Parameters

Name Type Default value Description
$cart CartInterface - -

Return values

ConstraintViolationListInterface