ComponentReflection
final class ComponentReflection extends ReflectionClass
internal |
Helpers for Presenter & Component.
Properties
string read-only | $name | ||
string read-only | $fileName |
Methods
Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter] or annotation @persistent.
Returns array of persistent properties. They are public and have attribute #[Persistent] or annotation @persistent.
No description
Is a method callable? It means class is instantiable and method has public visibility, is non-static and non-abstract.
Lossless type conversion.
Has class specified annotation?
Returns an annotation value.
No description
No description
return string[]
Details
at line 39
array
getParameters()
Returns array of class properties that are public and have attribute #[Persistent] or #[Parameter] or annotation @persistent.
at line 87
array
getPersistentParams()
Returns array of persistent properties. They are public and have attribute #[Persistent] or annotation @persistent.
at line 95
array
getPersistentComponents()
No description
at line 120
void
saveState(Component $component, array $params)
Saves state information for next request.
at line 160
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 177
static array
combineArgs(ReflectionFunctionAbstract $method, array $args)
No description
at line 216
static bool
convertType($val, string $types)
Lossless type conversion.
at line 274
static array|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 294
static string
getParameterType(ReflectionParameter $param)
No description
at line 304
static string
getPropertyType(ReflectionProperty $prop, $default)
No description
at line 316
bool
hasAnnotation(string $name)
Has class specified annotation?
at line 326
mixed
getAnnotation(string $name)
Returns an annotation value.
at line 333
MethodReflection
getMethod($name)
No description
at line 342
array
getMethods($filter = -1)
No description
at line 355
static array
getClassesAndTraits(string $class)
return string[]