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 $class = null)
Returns array of classes persistent parameters. They have public visibility, are non-static and have annotation @persistent.
at line 75
array
getPersistentComponents(string $class = null)
No description
at line 99
void
saveState(Component $component, array $params)
Saves state informations for next request.
at line 139
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 155
static array
combineArgs(ReflectionFunctionAbstract $method, array $args)
No description
at line 193
static bool
convertType($val, string $types)
Non data-loss type conversion.
at line 256
static array|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 274
static string
getParameterType(ReflectionParameter $param)
No description
at line 284
static string
getPropertyType(ReflectionProperty $prop, $default)
No description
at line 296
bool
hasAnnotation(string $name)
Has class specified annotation?
at line 306
mixed
getAnnotation(string $name)
Returns an annotation value.
at line 313
MethodReflection
getMethod($name)
No description
at line 322
array
getMethods($filter = -1)
No description
at line 334
static array
getClassesAndTraits(string $class)
return string[]
Traits
Strict class for better experience.