Class

TRex\Reflection\AttributeReflection

abstract class AttributeReflection extends Reflection

Class AttributeReflection Main class for reflection of the different parts of a class.

Constants

NO_FILTER

No filter.

Filter constant.

PUBLIC_FILTER

Filter only public visibility.

Filter constant.

PROTECTED_FILTER

Filter only protected visibility.

Filter constant.

PRIVATE_FILTER

Filter only private visibility.

Filter constant.

STATIC_FILTER

Filter only static.

Filter constant.

Methods

__construct(string $className, string $propertyName)

Constructor.

string getName(bool $isFullName = false)

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

bool isTransient()

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

ClassReflection getClassReflection()

Returns the reflector of the class where the attribute is declaring.

Annotations getAnnotations()

Returns the comment annotations of the attributes.

TypeReflection[] getTypeReflections()

Returns a list of all types of the attributes.

Details

at line 80
public __construct(string $className, string $propertyName)

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

string $className
string $propertyName

at line 95
public string getName(bool $isFullName = false)

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

Parameters

bool $isFullName

Return Value

string

at line 110
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 125
public ClassReflection getClassReflection()

Returns the reflector of the class where the attribute is declaring.

Return Value

ClassReflection

at line 135
public Annotations getAnnotations()

Returns the comment annotations of the attributes.

Return Value

Annotations

at line 148
public TypeReflection[] getTypeReflections()

Returns a list of all types of the attributes.

Return Value

TypeReflection[]