NamedEvent
Wrap an event object with an explicit dispatch name.
Description
The name defaults to the wrapped event class when no explicit identifier is provided.
Interfaces
Properties
Methods
Create a named wrapper for the provided event.
Get the original event instance.
Get the dispatch name for the wrapped event.
Determine whether propagation has been stopped for the wrapped event.
Create a named wrapper for the provided event.
public
__construct(
object
$event[,
string|null
$name = null]) : mixed
Parameters
$event
:
object
Description
original event instance
$name
:
string|null
=
null
Description
Explicit dispatch name. Defaults to the wrapped event class name.
Get the original event instance.
public
getEvent() : object
Return values
Description
wrapped event instance
Get the dispatch name for the wrapped event.
public
getName() : string
Return values
Description
event name used for listener lookup
Determine whether propagation has been stopped for the wrapped event.
public
isPropagationStopped() : bool
Return values
Description
whether the wrapped event stops propagation