class ModelProperty implements PropertyReflection

Methods

__construct(ClassReflection $declaringClass, Type $readableType, Type $writableType, bool $writeable = true, bool $canChangeTypeAfterAssignment = false)

Create a new model property instance.

ClassReflection
getDeclaringClass()

Get the class that declares the property.

bool
isStatic()

Determine whether the property is static.

bool
isPrivate()

Determine whether the property is private.

bool
isPublic()

Determine whether the property is public.

bool
isReadable()

Determine whether the property is readable.

bool
isWritable()

Determine whether the property is writable.

string|null
getDocComment()

Get the property's doc comment.

Type
getReadableType()

Get the type the property reads as.

Type
getWritableType()

Get the type the property accepts.

bool
canChangeTypeAfterAssignment()

Determine whether an assignment narrows the property's type.

TrinaryLogic
isDeprecated()

Determine whether the property is deprecated.

string|null
getDeprecatedDescription()

Get the property's deprecation description.

TrinaryLogic
isInternal()

Determine whether the property is internal.

Details

at line 19
__construct(ClassReflection $declaringClass, Type $readableType, Type $writableType, bool $writeable = true, bool $canChangeTypeAfterAssignment = false)

Create a new model property instance.

Parameters

ClassReflection $declaringClass
Type $readableType
Type $writableType
bool $writeable
bool $canChangeTypeAfterAssignment

whether reading the property returns the assigned value unchanged, as for a raw database attribute

at line 31
ClassReflection getDeclaringClass()

Get the class that declares the property.

Return Value

ClassReflection

at line 39
bool isStatic()

Determine whether the property is static.

Return Value

bool

at line 47
bool isPrivate()

Determine whether the property is private.

Return Value

bool

at line 55
bool isPublic()

Determine whether the property is public.

Return Value

bool

at line 63
bool isReadable()

Determine whether the property is readable.

Return Value

bool

at line 71
bool isWritable()

Determine whether the property is writable.

Return Value

bool

at line 79
string|null getDocComment()

Get the property's doc comment.

Return Value

string|null

at line 87
Type getReadableType()

Get the type the property reads as.

Return Value

Type

at line 95
Type getWritableType()

Get the type the property accepts.

Return Value

Type

at line 103
bool canChangeTypeAfterAssignment()

Determine whether an assignment narrows the property's type.

Return Value

bool

at line 112
TrinaryLogic isDeprecated()

Determine whether the property is deprecated.

Return Value

TrinaryLogic

at line 120
string|null getDeprecatedDescription()

Get the property's deprecation description.

Return Value

string|null

at line 128
TrinaryLogic isInternal()

Determine whether the property is internal.

Return Value

TrinaryLogic