Class EventHook
An event hook.
An ICanBoogie\EventHook
instance is created when an event hook is attached. The purpose of this
instance is to ease its detaching:
<?php use ICanBoogie\HTTP\Dispatcher; $eh = $events->attach(function(Dispatcher\CollectEvent $event, Dispatcher $target) { // … }); $eh->detach();
Methods summary
public
|
|
public
|
|
public
|
Properties summary
Magic properties
public read-only
|
$events
Events collection. |
public read-only
string
|
$type
Event type |
public read-only
callable
|
$hook
Event hook. |