Copied!

CartShoppingListTransferServiceInterface

CartShoppingListTransferServiceInterface.php : 14
Interface

Methods

publicaddSelectedEntriesToCart()

CartShoppingListTransferServiceInterface.php : 29

Adds selected entries from a shopping list to the cart.

public addSelectedEntriesToCart(ShoppingListInterface $shoppingList, array<string|int, string> $entryIdentifiers[, CartInterface|null $cart = null ]) : CartInterface

Parameters

Name Type Default value Description
$shoppingList ShoppingListInterface - -
$entryIdentifiers array<string|int, string> - -
$cart CartInterface|null null -

Return values

CartInterface

publicaddShoppingListToCart()

CartShoppingListTransferServiceInterface.php : 19

Adds all entries from a shopping list to the cart.

public addShoppingListToCart(ShoppingListInterface $shoppingList[, CartInterface|null $cart = null ]) : CartInterface

Parameters

Name Type Default value Description
$shoppingList ShoppingListInterface - -
$cart CartInterface|null null -

Return values

CartInterface

publicmoveCartToShoppingList()

CartShoppingListTransferServiceInterface.php : 41

Moves all cart entries to a shopping list (save for later).

public moveCartToShoppingList(CartInterface $cart[, ShoppingListInterface|null $shoppingList = null ]) : ShoppingListInterface

If null, uses or creates the default shopping list.

After moving, all cart entries are removed from the cart.

Parameters

Name Type Default value Description
$cart CartInterface - -
$shoppingList ShoppingListInterface|null null -

Return values

ShoppingListInterface

publicmoveSelectedCartEntriesToShoppingList()

CartShoppingListTransferServiceInterface.php : 54

Moves selected cart entries to a shopping list (save for later).

public moveSelectedCartEntriesToShoppingList(CartInterface $cart, array<string|int, string> $entryIdentifiers[, ShoppingListInterface|null $shoppingList = null ]) : ShoppingListInterface

If null, uses or creates the default shopping list.

After moving, the selected cart entries are removed from the cart.

Parameters

Name Type Default value Description
$cart CartInterface - -
$entryIdentifiers array<string|int, string> -

Cart entry identifiers to move

$shoppingList ShoppingListInterface|null null -

Return values

ShoppingListInterface