ReflectionService
class ReflectionService implements ReflectionServiceInterface (View source)
Default implementation of ReflectionServiceInterface
Traits
Implements ReflectionServiceInterface readMethod & writeMethodrelated methods
Implements methods of ReflectionServiceInterface related to property values
Implements ReflectionServiceInterface getReflectionProperty()
Singleton pattern trait
Methods
populateClassPropertiyValues($properties, ReflectionClass $class, $object, $flags = 0, ReflectionClass $derivedClass = null)
No description
getPropertyValue($object, $property, $flags = 0)
No description
populatePropertyValue($value, $object, $property, $flags = 0, ReflectionClass $derivedClass = null)
No description
setPropertyValues($object, $values, $flags = 0)
No description
getReflectionProperty($class, $propertyName, $flags = 0)
No description
__construct()
No description
getReflectionClass(string|object $classNameOrObject)
Get reflection class for the given class name or object.
Details
findReadMethodForProperty(ReflectionClass $class, $propertyName)
findWriteMethodForProperty(ReflectionClass $class, $propertyName)
setReadMethodPrefixes($list)
setWriteMethodPrefixes($list)
getPropertyValues($object, $flags = 0)
protected
populateClassPropertiyValues($properties, ReflectionClass $class, $object, $flags = 0, ReflectionClass $derivedClass = null)
getPropertyValue($object, $property, $flags = 0)
protected
populatePropertyValue($value, $object, $property, $flags = 0, ReflectionClass $derivedClass = null)
setPropertyValues($object, $values, $flags = 0)
getReflectionProperty($class, $propertyName, $flags = 0)
in SingletonTrait at line 23
static $this
getInstance()
Get the class singleton instance
at line 28
__construct()
at line 40
ReflectionClass
getReflectionClass(string|object $classNameOrObject)
Get reflection class for the given class name or object.