ComponentReflection
final class ComponentReflection extends ReflectionClass
internal |
Helpers for Presenter & Component.
Properties
string read-only | $name | ||
string read-only | $fileName |
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 269
static array|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 289
static string
getParameterType(ReflectionParameter $param)
No description
at line 299
static string
getPropertyType(ReflectionProperty $prop, $default)
No description
at line 311
bool
hasAnnotation(string $name)
Has class specified annotation?
at line 321
mixed
getAnnotation(string $name)
Returns an annotation value.
at line 328
MethodReflection
getMethod($name)
No description
at line 337
array
getMethods($filter = -1)
No description
at line 350
static array
getClassesAndTraits(string $class)
return string[]
Traits
Strict class for better experience.