ComponentReflection
final class ComponentReflection extends ReflectionClass
internal |
Helpers for Presenter & Component.
Methods
Returns array of classes persistent parameters. They have public visibility, are non-static and have annotation @persistent.
No description
Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.
Non data-loss type conversion.
Has class specified annotation?
Returns an annotation value.
No description
No description
return string[]
Details
at line 39
array
getPersistentParams(string|null $class = null)
Returns array of classes persistent parameters. They have public visibility, are non-static and have annotation @persistent.
at line 78
array
getPersistentComponents(string|null $class = null)
No description
at line 106
void
saveState(Component $component, array $params)
Saves state informations for next request.
at line 146
bool
hasCallableMethod(string $method)
Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.
at line 163
static array
combineArgs(ReflectionFunctionAbstract $method, array $args)
No description
at line 202
static bool
convertType($val, string $types)
Non data-loss type conversion.
at line 268
static array|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 288
static string
getParameterType(ReflectionParameter $param)
No description
at line 298
static string
getPropertyType(ReflectionProperty $prop, $default)
No description
at line 310
bool
hasAnnotation(string $name)
Has class specified annotation?
at line 319
mixed
getAnnotation(string $name)
Returns an annotation value.
at line 326
MethodReflection
getMethod($name)
No description
at line 335
array
getMethods($filter = -1)
No description
at line 348
static array
getClassesAndTraits(string $class)
return string[]
Traits
Strict class for better experience.