ICanBoogie/Event master
  • Namespace
  • Class

Namespaces

  • ICanBoogie

Classes

  • Event
  • EventCollection
  • EventCollectionProvider
  • EventHook
  • EventHookReflection
  • EventProfiler
  • EventReflection

Functions

  • get_events

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();
ICanBoogie\EventHook uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie
Located at EventHook.php

Methods summary

protected
# get_type( )
protected
# get_hook( )
protected
# get_events( )
public
# __construct( ICanBoogie\EventCollection $events, string $type, callable $hook )

Parameters

$events
$type
$hook
public
# detach( )

Detaches the event hook from the events.

Detaches the event hook from the events.

Properties summary

Magic properties

public read-only ICanBoogie\EventCollection $events

EventCollection collection.

public read-only string $type

Event type

public read-only callable $hook

Event hook.

ICanBoogie/Event master API documentation generated by ApiGen