final class ComponentReflection extends ReflectionClass

internal  
 

Helpers for Presenter & Component.

Properties

Control> read-only $name
string read-only $fileName

Methods

array
getParameters()

Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter].

array
getPersistentParams()

Returns array of persistent properties. They are public and have attribute #[Persistent].

array
getPersistentComponents()

Returns array of persistent components. They are tagged with class-level attribute

[Persistent] or returned by Presenter::getPersistentComponents().

array
getTemplateVariables(Control $control)

No description

bool
hasCallableMethod(string $method)

Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.

ReflectionMethod|null
getActionRenderMethod(string $action)

Returns action() or render() method if available

ReflectionMethod|null
getSignalMethod(string $signal)

Returns handle*() method if available

static array
combineArgs(ReflectionFunctionAbstract $method, array $args)

No description

Details

at line 35
array getParameters()

Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter].

Return Value

array

at line 80
array getPersistentParams()

Returns array of persistent properties. They are public and have attribute #[Persistent].

Return Value

array

at line 91
array getPersistentComponents()

Returns array of persistent components. They are tagged with class-level attribute

[Persistent] or returned by Presenter::getPersistentComponents().

Return Value

array

at line 113
array getTemplateVariables(Control $control)

No description

Parameters

Control $control

Return Value

array

at line 134
bool hasCallableMethod(string $method)

Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.

Parameters

string $method

Return Value

bool

at line 144
ReflectionMethod|null getActionRenderMethod(string $action)

Returns action() or render() method if available

Parameters

string $action

Return Value

ReflectionMethod|null

at line 156
ReflectionMethod|null getSignalMethod(string $signal)

Returns handle*() method if available

Parameters

string $signal

Return Value

ReflectionMethod|null

at line 165
static array combineArgs(ReflectionFunctionAbstract $method, array $args)

No description

Parameters

ReflectionFunctionAbstract $method
array $args

Return Value

array