class GetExistingCartLine extends AbstractAction (View source)

Properties

protected $passThrough

The property to pass back to the callback

from  AbstractAction

Methods

static 
make()

E.g. MyAction::make();

static 
run(...$arguments)

E.g. MyAction::run($item1, $item2);

then(Closure $callback)

No description

CartLine|null
execute(Cart $cart, Purchasable $purchasable, array $meta = [])

Execute the action

Details

static make()

E.g. MyAction::make();

static run(...$arguments)

E.g. MyAction::run($item1, $item2);

Parameters

...$arguments

then(Closure $callback)

No description

Parameters

Closure $callback

CartLine|null execute(Cart $cart, Purchasable $purchasable, array $meta = [])

Execute the action

Parameters

Cart $cart
Purchasable $purchasable
array $meta

Return Value

CartLine|null