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
Returns
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
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
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.