ICanBoogie/Event v1.3.3
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Event

Classes

  • Event
  • EventHook
  • 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();
Namespace: ICanBoogie
Located at Events.php

Methods summary

public
# __construct( ICanBoogie\Events $events, $type, $hook )
public
# __get( $property )
public
# detach( )

Detaches the event hook from the events.

Detaches the event hook from the events.

Properties summary

Magic properties

public read-only ICanBoogie\Events $events

Events collection.

public read-only string $type

Event type

public read-only callable $hook

Event hook.

ICanBoogie/Event v1.3.3 API documentation generated by ApiGen