Class

TRex\Reflection\ClassReflection

class ClassReflection extends Reflection

Class ClassReflection Reflected a class (but not an object)

Methods

__construct($className)

Constructor.

string getName()

Returns the name of the reflected object, class, property or method.

from Reflection
bool isTransient()

Transient is a comment tag (@transient) added to a class, a property or a method.

from Reflection
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).

Details

at line 20
public __construct($className)

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

$className

in Reflection at line 39
public string getName()

Returns the name of the reflected object, class, property or method.

Return Value

string

in Reflection at line 50
public bool isTransient()

Transient is a comment tag (@transient) added to a class, a property or a method.

This tag is use to not convert the value.

Return Value

bool

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[]