Copied!

CreateFormDataEvent

CreateFormDataEvent.php : 13
Final
Extends Event

Event is the base class for classes containing event data.

This class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised.

You can call the method stopPropagation() to abort the execution of further listeners in your event listener.

Methods

public__construct()

CreateFormDataEvent.php : 32
public __construct(object $step, string $discountType, string $ruleType)

Parameters

Name Type Default value Description
$step object - -
$discountType string - -
$ruleType string - -

publiccreateEventName()

CreateFormDataEvent.php : 24
public static createEventName(string $stepName) : string

Parameters

Name Type Default value Description
$stepName string - -

Return values

string

publicgetDiscountType()

CreateFormDataEvent.php : 57
public getDiscountType() : string

Return values

string

publicgetRuleType()

CreateFormDataEvent.php : 62
public getRuleType() : string

Return values

string

publicgetStep()

CreateFormDataEvent.php : 39
public getStep() : object

Return values

object

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetStep()

CreateFormDataEvent.php : 47
public setStep(object $step) : $this

Parameters

Name Type Default value Description
$step object - -

Return values

$this

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