Copied!

BeforeAddParticipantEvent

BeforeAddParticipantEvent.php : 17
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeAddParticipantEvent.php : 25
public __construct(SessionInterface $session, AbstractParticipantCreateStruct $createStruct[, ParticipantInterface|null $participantResult = null ])

Parameters

Name Type Default value Description
$session SessionInterface - -
$createStruct AbstractParticipantCreateStruct - -
$participantResult ParticipantInterface|null null -

publicgetCreateStruct()

BeforeAddParticipantEvent.php : 40
public getCreateStruct() : AbstractParticipantCreateStruct

Return values

AbstractParticipantCreateStruct

publicgetParticipantResult()

BeforeAddParticipantEvent.php : 45
public getParticipantResult() : ParticipantInterface

Return values

ParticipantInterface

publicgetSession()

BeforeAddParticipantEvent.php : 35
public getSession() : SessionInterface

Return values

SessionInterface

publichasParticipantResult()

BeforeAddParticipantEvent.php : 61
public hasParticipantResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetParticipantResult()

BeforeAddParticipantEvent.php : 56
public setParticipantResult(ParticipantInterface|null $participantResult) : void

Parameters

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