Methods

Get event name

getName() : string

Returns

string

Get a single parameter by name

getParam(string $name, mixed $default) : mixed

Parameters

$name

string

$default

mixed

Default value to return if parameter does not exist

Returns

mixed

Get parameters passed to the event

getParams() : array | \ArrayAccess

Returns

array\ArrayAccess

Get target/context from which event was triggered

getTarget() : null | string | object

Returns

nullstringobject

Has this event indicated event propagation should stop?

propagationIsStopped() : bool

Returns

bool

Set the event name

setName(string $name) : void

Parameters

$name

string

Set a single parameter by key

setParam(string $name, mixed $value) : void

Parameters

$name

string

$value

mixed

Set event parameters

setParams(string $params) : void

Parameters

$params

string

Set the event target/context

setTarget(null | string | object $target) : void

Parameters

$target

nullstringobject

Indicate whether or not the parent EventManagerInterface should stop propagating events

stopPropagation(bool $flag) : void

Parameters

$flag

bool

 Properties

 

$name

$name : null

 

$params

$params : array | \ArrayAccess