Events
trait Events
Properties
protected Event[] | $eventHandlers |
Methods
void
emit(string $event, mixed $payload = null)
Emits an event to parent
void
trigger(string $eventName, mixed $payload = null)
Invokes the event handlers for the given event
Details
at line 17
Events
on(string $eventName, callable $handler = null)
Attaches an event handler for a given event
at line 43
void
emit(string $event, mixed $payload = null)
Emits an event to parent
at line 57
void
trigger(string $eventName, mixed $payload = null)
Invokes the event handlers for the given event