ReflectionServiceInterface
interface ReflectionServiceInterface (View source)
Reflection utility service
Constants
| EXPOSE_HIDDEN_PROPERTY |
Expose non-public prpeerties when retrieving property values. |
| WRITABLE |
Require write permission to value. |
| READABLE |
Require public value access |
| RW |
Require full access to value. |
| EXPOSE_INHERITED_PROPERTY |
Expose private properties of parent classes |
| ALLOW_WRITE_METHOD |
Use class instance method to alter property value. |
| ALLOW_READ_METHOD |
Use a class instance method to read access property value. When retrieving non-public property value. Invoke method matching getter naming convention if any. |
| ALLOW_RW_METHODS |
Use class instance methods to set and get values. |
| FORCE_WRITE_METHOD |
When assigning property value. Always use mettong matching getter naming convention if possible. |
| FORCE_READ_METHOD |
When retrieving property value. Always use mettong matching getter naming convention if possible. |
| FORCE_RW_METHODS |
Force use of setter and getter methods even if property has public access. |
Methods
Get reflection class for the given class name or object.
No description
No description
No description
No description
Find the method matching getter naming convention for the given property name.
Find the method matching setter naming convention for the given property name.
Details
at line 115
ReflectionClass
getReflectionClass(string|object $classNameOrObject)
Get reflection class for the given class name or object.
at line 131
ReflectionProperty|NULL
getReflectionProperty(ReflectionClass|object|string $class, string $property, number $flags = 0)
at line 143
mixed
getPropertyValue(object $object, ReflectionProperty|string $property, number $flags = 0)
at line 153
mixed[]
getPropertyValues(object $object, number $flags = 0)
at line 164
setPropertyValues(object $object, array $values, number $flags = 0)
at line 175
ReflectionMethod|NULL
findReadMethodForProperty(ReflectionClass $class, string $propertyName)
Find the method matching getter naming convention for the given property name.
at line 187
ReflectionMethod|NULL
findWriteMethodForProperty(ReflectionClass $class, string $propertyName)
Find the method matching setter naming convention for the given property name.