AddOrUpdatePurchasable
class AddOrUpdatePurchasable extends AbstractAction (View source)
Properties
protected | $passThrough | The property to pass back to the callback |
from AbstractAction |
Methods
execute(Cart $cart, Purchasable $purchasable, int $quantity = 1, array $meta = [])
Execute the action.
Details
static
make()
E.g. MyAction::make();
static
run(...$arguments)
E.g. MyAction::run($item1, $item2);
then(Closure $callback)
No description
AddOrUpdatePurchasable
execute(Cart $cart, Purchasable $purchasable, int $quantity = 1, array $meta = [])
Execute the action.