Copied!

BeforeAddEntryEvent

BeforeAddEntryEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeAddEntryEvent.php : 24
public __construct(CartInterface $cart, EntryAddStruct $entryAddStruct[, CartInterface|null $cartResult = null ])

Parameters

Name Type Default value Description
$cart CartInterface - -
$entryAddStruct EntryAddStruct - -
$cartResult CartInterface|null null -

publicgetCart()

BeforeAddEntryEvent.php : 31
public getCart() : CartInterface

Return values

CartInterface

publicgetCartResult()

BeforeAddEntryEvent.php : 41
public getCartResult() : CartInterface

Return values

CartInterface

publicgetEntryAddStruct()

BeforeAddEntryEvent.php : 36
public getEntryAddStruct() : EntryAddStruct

Return values

EntryAddStruct

publichasCartResult()

BeforeAddEntryEvent.php : 57
public hasCartResult() : bool

Return values

bool

publicsetCartResult()

BeforeAddEntryEvent.php : 52
public setCartResult(CartInterface|null $cartResult) : void

Parameters

Name Type Default value Description
$cartResult CartInterface|null - -