Copied!

UpdateDiscountEvent

UpdateDiscountEvent.php : 15
Final
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

UpdateDiscountEvent.php : 23
public __construct(DiscountInterface $discount, DiscountUpdateStruct $updateStruct, DiscountInterface $discountResult)

Parameters

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

publicgetDiscount()

UpdateDiscountEvent.php : 33
public getDiscount() : DiscountInterface

Return values

DiscountInterface

publicgetDiscountResult()

UpdateDiscountEvent.php : 43
public getDiscountResult() : DiscountInterface

Return values

DiscountInterface

publicgetUpdateStruct()

UpdateDiscountEvent.php : 38
public getUpdateStruct() : DiscountUpdateStruct

Return values

DiscountUpdateStruct

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

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