Copied!

BeforeCreateDiscountEvent

BeforeCreateDiscountEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateDiscountEvent.php : 22
public __construct(DiscountCreateStruct $createStruct[, DiscountInterface|null $discountResult = null ])

Parameters

Name Type Default value Description
$createStruct DiscountCreateStruct - -
$discountResult DiscountInterface|null null -

publicgetCreateStruct()

BeforeCreateDiscountEvent.php : 30
public getCreateStruct() : DiscountCreateStruct

Return values

DiscountCreateStruct

publicgetDiscountResult()

BeforeCreateDiscountEvent.php : 35
public getDiscountResult() : DiscountInterface

Return values

DiscountInterface

publichasDiscountResult()

BeforeCreateDiscountEvent.php : 53
public hasDiscountResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetDiscountResult()

BeforeCreateDiscountEvent.php : 48
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().