Copied!

BeforeUpdateDiscountEvent

BeforeUpdateDiscountEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdateDiscountEvent.php : 24
public __construct(DiscountInterface $discount, DiscountUpdateStruct $updateStruct[, DiscountInterface|null $discountResult = null ])

Parameters

Name Type Default value Description
$discount DiscountInterface - -
$updateStruct DiscountUpdateStruct - -
$discountResult DiscountInterface|null null -

publicgetDiscount()

BeforeUpdateDiscountEvent.php : 34
public getDiscount() : DiscountInterface

Return values

DiscountInterface

publicgetDiscountResult()

BeforeUpdateDiscountEvent.php : 44
public getDiscountResult() : DiscountInterface

Return values

DiscountInterface

publicgetUpdateStruct()

BeforeUpdateDiscountEvent.php : 39
public getUpdateStruct() : DiscountUpdateStruct

Return values

DiscountUpdateStruct

publichasDiscountResult()

BeforeUpdateDiscountEvent.php : 62
public hasDiscountResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetDiscountResult()

BeforeUpdateDiscountEvent.php : 57
public setDiscountResult(DiscountInterface|null $discountResult) : void

Parameters

Name Type Default value Description
$discountResult DiscountInterface|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().