-
-
Notifications
You must be signed in to change notification settings - Fork 0
NamedEvent
github-actions edited this page Apr 6, 2026
·
1 revision
Wrap an event object with an explicit dispatch name.
The name defaults to the wrapped event class when no explicit identifier is provided.
- Full name:
\FastForward\EventDispatcher\Event\NamedEvent - This class is marked as final and can't be subclassed
- This class implements:
StoppableEventInterface - This class is a Final class
Create a named wrapper for the provided event.
public __construct(object $event, string|null $name = null): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$event |
object | original event instance |
$name |
string|null | Explicit dispatch name. Defaults to the wrapped event class name. |
Get the dispatch name for the wrapped event.
public getName(): stringReturn Value:
event name used for listener lookup
Get the original event instance.
public getEvent(): objectReturn Value:
wrapped event instance
Determine whether propagation has been stopped for the wrapped event.
public isPropagationStopped(): boolReturn Value:
whether the wrapped event stops propagation