Copied!

BeforeUpdateCurrencyEvent

BeforeUpdateCurrencyEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdateCurrencyEvent.php : 24
public __construct(CurrencyInterface $currency, CurrencyUpdateStruct $updateStruct)

Parameters

Name Type Default value Description
$currency CurrencyInterface - -
$updateStruct CurrencyUpdateStruct - -

publicgetCurrency()

BeforeUpdateCurrencyEvent.php : 30
public getCurrency() : CurrencyInterface

Return values

CurrencyInterface

publicgetResultCurrency()

BeforeUpdateCurrencyEvent.php : 40
public getResultCurrency() : CurrencyInterface

Return values

CurrencyInterface

publicgetUpdateStruct()

BeforeUpdateCurrencyEvent.php : 35
public getUpdateStruct() : CurrencyUpdateStruct

Return values

CurrencyUpdateStruct

publichasResultCurrency()

BeforeUpdateCurrencyEvent.php : 52
public hasResultCurrency() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetResultCurrency()

BeforeUpdateCurrencyEvent.php : 57
public setResultCurrency(CurrencyInterface|null $resultCurrency) : void

Parameters

Name Type Default value Description
$resultCurrency CurrencyInterface|null - -

publicstopPropagation()

Event.php : 50

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().