ICanBoogie
  • Documentation
  • API Reference
  • Event 3.0.x
Namespaces
  • ICanBoogie
Classes
  • Event
  • EventCollection
  • EventCollectionProvider
  • EventHook
  • EventHookReflection
  • EventProfiler
  • EventReflection

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 from( callable $hook ) : ICanBoogie\EventHookReflection

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 get_type( void ) : string

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 $reflection : ReflectionFunction|ReflectionMethod
public $type : string

The event type resolved from the event hook parameters.

Event 3.0.x – Check on GitHub – API documentation generated by ApiGen