Copied!

BeforeAddEntriesEvent

BeforeAddEntriesEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeAddEntriesEvent.php : 21
public __construct(ShoppingListInterface $shoppingList, array<string|int, EntryAddStruct$entryAddStructs[, ShoppingListInterface|null $shoppingListResult = null ])

Parameters

Name Type Default value Description
$shoppingList ShoppingListInterface - -
$entryAddStructs array<string|int, EntryAddStruct> - -
$shoppingListResult ShoppingListInterface|null null -

publicgetEntryAddStructs()

BeforeAddEntriesEvent.php : 35
public getEntryAddStructs() : array<string|int, EntryAddStruct>

Return values

array<string|int, EntryAddStruct>

publicgetShoppingList()

BeforeAddEntriesEvent.php : 27
public getShoppingList() : ShoppingListInterface

Return values

ShoppingListInterface

publicgetShoppingListResult()

BeforeAddEntriesEvent.php : 40
public getShoppingListResult() : ShoppingListInterface

Return values

ShoppingListInterface

publichasShoppingListResult()

BeforeAddEntriesEvent.php : 56
public hasShoppingListResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 35
public isPropagationStopped() : bool

Return values

bool

publicsetShoppingListResult()

BeforeAddEntriesEvent.php : 51
public setShoppingListResult(ShoppingListInterface|null $shoppingListResult) : void

Parameters

Name Type Default value Description
$shoppingListResult ShoppingListInterface|null - -

publicstopPropagation()

Event.php : 47

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().