class PropertyReflection extends ReflectionProperty (View source)

Extended version of the ReflectionProperty

Properties

protected DocCommentParser $docCommentParser
protected bool $isAopIntroduced

Whether this property represents an AOP-introduced property

Methods

bool
isTaggedWith(string $tag)

Checks if the doc comment of this property is tagged with the specified tag

getDeclaringClass()

Returns the declaring class

array
getTagsValues()

Returns an array of tags and their values

array
getTagValues(string $tag)

Returns the values of the specified tag

string
getDescription()

Returns the description part of the doc comment

mixed
getValue(object $object = null)

Returns the value of the reflected property - even if it is protected.

void
setValue(object $object = null, mixed $value = null)

Returns the value of the reflected property - even if it is protected.

getDocCommentParser()

Returns an instance of the doc comment parser and runs the parse() method.

void
setIsAopIntroduced(bool $isAopIntroduced)

No description

bool
isAopIntroduced()

No description

Details

bool isTaggedWith(string $tag)

Checks if the doc comment of this property is tagged with the specified tag

Parameters

string $tag

Tag name to check for

Return Value

bool

true if such a tag has been defined, otherwise false

ClassReflection getDeclaringClass()

Returns the declaring class

Return Value

ClassReflection

The declaring class

array getTagsValues()

Returns an array of tags and their values

Return Value

array

Tags and values

array getTagValues(string $tag)

Returns the values of the specified tag

Parameters

string $tag

Return Value

array

Values of the given tag

string getDescription()

Returns the description part of the doc comment

Return Value

string

Doc comment description

mixed getValue(object $object = null)

Returns the value of the reflected property - even if it is protected.

Parameters

object $object

Instance of the declaring class to read the value from

Return Value

mixed

Value of the property

Exceptions

Exception

void setValue(object $object = null, mixed $value = null)

Returns the value of the reflected property - even if it is protected.

Parameters

object $object

Instance of the declaring class to set the value on

mixed $value

The value to set on the property

Return Value

void

Exceptions

Exception

protected DocCommentParser getDocCommentParser()

Returns an instance of the doc comment parser and runs the parse() method.

Return Value

DocCommentParser

void setIsAopIntroduced(bool $isAopIntroduced)

No description

Parameters

bool $isAopIntroduced

Return Value

void

bool isAopIntroduced()

No description

Return Value

bool