ICanBoogie/Event master
  • Namespace
  • Class

Namespaces

  • ICanBoogie

Classes

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

Functions

  • get_events

Class EventHookReflection

Reflection of an event hook.

ICanBoogie\EventHookReflection uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie
Located at EventHookReflection.php

Methods summary

public static ICanBoogie\EventHookReflection
# from( callable $hook )

Creates instance from an event hook.

Creates instance from an event hook.

Parameters

$hook

Returns

ICanBoogie\EventHookReflection

Throws

InvalidArgumentException
if $hook is not a valid event hook.
public static
# assert_valid( callable $hook )

Asserts that the event hook is valid.

Asserts that the event hook is valid.

Parameters

$hook

Throws

InvalidArgumentException
if $hook is not a valid event hook.
public static
# assert_valid_parameters_number( array $parameters )

Asserts that the number of parameters is valid.

Asserts that the number of parameters is valid.

Parameters

$parameters
protected string
# get_type( )

Returns the event type resolved from the event hook parameters.

Returns the event type resolved from the event hook parameters.

Returns

string

Properties summary

Magic properties

public ReflectionFunction|ReflectionMethod $reflection
public string $type

The event type resolved from the event hook parameters.

ICanBoogie/Event master API documentation generated by ApiGen