Class

TRex\Reflection\MethodReflection

class MethodReflection extends AttributeReflection

Class MethodReflection.

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.

from AttributeReflection
string getName(bool $isFullName = false)

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

from AttributeReflection
bool isTransient()

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

from AttributeReflection
ClassReflection getClassReflection()

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

from AttributeReflection
Annotations getAnnotations()

Returns the comment annotations of the attributes.

from AttributeReflection
TypeReflection[] getTypeReflections()

Returns a list of all types of the attributes.

from AttributeReflection
static MethodReflection instantiate(ReflectionMethod $reflectedMethod)

Instantiates a new MethodReflection from a PHP reflector.

Details

in AttributeReflection 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

in AttributeReflection 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

in AttributeReflection 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

in AttributeReflection at line 125
public ClassReflection getClassReflection()

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

Return Value

ClassReflection

in AttributeReflection at line 135
public Annotations getAnnotations()

Returns the comment annotations of the attributes.

Return Value

Annotations

in AttributeReflection at line 148
public TypeReflection[] getTypeReflections()

Returns a list of all types of the attributes.

Return Value

TypeReflection[]

at line 21
static public MethodReflection instantiate(ReflectionMethod $reflectedMethod)

Instantiates a new MethodReflection from a PHP reflector.

Parameters

ReflectionMethod $reflectedMethod

Return Value

MethodReflection