Class

TRex\Reflection\ObjectReflection

class ObjectReflection extends ClassReflection

Class ObjectReflection

Methods

__construct($object)

Constructor.

PropertyReflection[] getReflectionProperties(int $filter = AttributeReflection::NO_FILTER)

Returns the property of the reflected class and all of its parents (This last point is the main difference with the PHP reflection).

from ClassReflection
object getObject()

Gets the current reflected object.

Details

at line 26
public __construct($object)

Constructor.

$data is initial data to set in the object. Keys are property names, and values are initial property values. $data could be a JSON string, an array or an array castable object.

Parameters

$object

in ClassReflection at line 34
public PropertyReflection[] getReflectionProperties(int $filter = AttributeReflection::NO_FILTER)

Returns the property of the reflected class and all of its parents (This last point is the main difference with the PHP reflection).

Filter is the same as \ReflectionProperty of PHP reflection: You can use these constants or use AttributeReflection constants.

Parameters

int $filter

Return Value

PropertyReflection[]

at line 37
public object getObject()

Gets the current reflected object.

Return Value

object