class ProxiedPropertyReflection implements PropertyReflection

Describe a read-only property that a proxy reads from its target, typed as what the proxy returns, with the target property's deprecation.

Methods

__construct(ClassReflection $declaringClass, Type $type, PropertyReflection|null $targetProperty)

Create a proxied property reflection.

ClassReflection
getDeclaringClass()

Return the proxy class.

bool
isStatic()

Determine whether the property is static.

bool
isPrivate()

Determine whether the property is private.

bool
isPublic()

Determine whether the property is public.

string|null
getDocComment()

Return the property docblock.

Type
getReadableType()

Get the type read from the property.

Type
getWritableType()

Get the type written to the property.

bool
canChangeTypeAfterAssignment()

Determine whether an assignment can change the property's type.

bool
isReadable()

Determine whether the property is readable.

bool
isWritable()

Determine whether the property is writable.

TrinaryLogic
isDeprecated()

Determine whether the target property is deprecated.

string|null
getDeprecatedDescription()

Get the target property's deprecation description.

TrinaryLogic
isInternal()

Determine whether the target property is internal.

Details

at line 28
__construct(ClassReflection $declaringClass, Type $type, PropertyReflection|null $targetProperty)

Create a proxied property reflection.

Parameters

ClassReflection $declaringClass
Type $type
PropertyReflection|null $targetProperty

the target's property, or null for an array offset

at line 39
ClassReflection getDeclaringClass()

Return the proxy class.

Return Value

ClassReflection

at line 47
bool isStatic()

Determine whether the property is static.

Return Value

bool

at line 55
bool isPrivate()

Determine whether the property is private.

Return Value

bool

at line 63
bool isPublic()

Determine whether the property is public.

Return Value

bool

at line 71
string|null getDocComment()

Return the property docblock.

Return Value

string|null

at line 79
Type getReadableType()

Get the type read from the property.

Return Value

Type

at line 87
Type getWritableType()

Get the type written to the property.

Return Value

Type

at line 95
bool canChangeTypeAfterAssignment()

Determine whether an assignment can change the property's type.

Return Value

bool

at line 103
bool isReadable()

Determine whether the property is readable.

Return Value

bool

at line 111
bool isWritable()

Determine whether the property is writable.

Return Value

bool

at line 119
TrinaryLogic isDeprecated()

Determine whether the target property is deprecated.

Return Value

TrinaryLogic

at line 127
string|null getDeprecatedDescription()

Get the target property's deprecation description.

Return Value

string|null

at line 135
TrinaryLogic isInternal()

Determine whether the target property is internal.

Return Value

TrinaryLogic