EventHook
in package
The parent event that occurs when a hook is triggered.
Table of Contents
- $eventHandlers : array<string|int, mixed>
- __invoke() : void
- Fires when the class is invoked.
- addHandler() : EventHook
- Add an HTTP handler to the list of handlers.
- removeHandler() : EventHook
- Remove an HTTP handler from the list of handlers.
Properties
$eventHandlers
private
array<string|int, mixed>
$eventHandlers
= []
Methods
__invoke()
Fires when the class is invoked.
public
__invoke(array<string|int, callable> ...$args) : void
Parameters
- $args : array<string|int, callable>
Return values
void —addHandler()
Add an HTTP handler to the list of handlers.
public
addHandler(callable $handler) : EventHook
Parameters
- $handler : callable
Return values
EventHook —removeHandler()
Remove an HTTP handler from the list of handlers.
public
removeHandler(callable $handler) : EventHook
Parameters
- $handler : callable