final class ComponentReflection extends ReflectionClass

internal  
 

Helpers for Presenter & Component.

Methods

array
getParameters()

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

array
getPersistentParams()

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

array
getPersistentComponents()

No description

void
saveState(Component $component, array $params)

Saves state information for next request.

bool
hasCallableMethod(string $method)

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

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

No description

static bool
convertType(mixed $val, string $types)

Lossless type conversion.

static array|null
parseAnnotation(Reflector $ref, string $name)

Returns an annotation value.

static string
getType(ReflectionParameter|ReflectionProperty $item)

No description

bool
hasAnnotation(string $name)

Has class specified annotation?

mixed
getAnnotation(string $name)

Returns an annotation value.

getMethod($name)

No description

array
getMethods($filter = -1)

No description

static array
getClassesAndTraits(string $class)

return string[]

Details

at line 31
array getParameters()

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

Return Value

array

at line 77
array getPersistentParams()

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

Return Value

array

at line 83
array getPersistentComponents()

No description

Return Value

array

at line 108
void saveState(Component $component, array $params)

Saves state information for next request.

Parameters

Component $component
array $params

Return Value

void

at line 148
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 165
static array combineArgs(ReflectionFunctionAbstract $method, array $args)

No description

Parameters

ReflectionFunctionAbstract $method
array $args

Return Value

array

at line 204
static bool convertType(mixed $val, string $types)

Lossless type conversion.

Parameters

mixed $val
string $types

Return Value

bool

at line 255
static array|null parseAnnotation(Reflector $ref, string $name)

Returns an annotation value.

Parameters

Reflector $ref
string $name

Return Value

array|null

at line 275
static string getType(ReflectionParameter|ReflectionProperty $item)

No description

Parameters

ReflectionParameter|ReflectionProperty $item

Return Value

string

at line 290
bool hasAnnotation(string $name)

Has class specified annotation?

Parameters

string $name

Return Value

bool

at line 299
mixed getAnnotation(string $name)

Returns an annotation value.

Parameters

string $name

Return Value

mixed

at line 306
MethodReflection getMethod($name)

No description

Parameters

$name

Return Value

MethodReflection

at line 315
array getMethods($filter = -1)

No description

Parameters

$filter

Return Value

array

at line 328
static array getClassesAndTraits(string $class)

return string[]

Parameters

string $class

Return Value

array