ModelProperty
class ModelProperty implements PropertyReflection
Methods
Create a new model property instance.
Get the class that declares the property.
Determine whether the property is static.
Determine whether the property is private.
Determine whether the property is public.
Determine whether the property is readable.
Determine whether the property is writable.
Get the property's doc comment.
Get the type the property reads as.
Get the type the property accepts.
Determine whether an assignment narrows the property's type.
Determine whether the property is deprecated.
Get the property's deprecation description.
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.
at line 31
ClassReflection
getDeclaringClass()
Get the class that declares the property.
at line 39
bool
isStatic()
Determine whether the property is static.
at line 47
bool
isPrivate()
Determine whether the property is private.
at line 55
bool
isPublic()
Determine whether the property is public.
at line 63
bool
isReadable()
Determine whether the property is readable.
at line 71
bool
isWritable()
Determine whether the property is writable.
at line 79
string|null
getDocComment()
Get the property's doc comment.
at line 87
Type
getReadableType()
Get the type the property reads as.
at line 95
Type
getWritableType()
Get the type the property accepts.
at line 103
bool
canChangeTypeAfterAssignment()
Determine whether an assignment narrows the property's type.
at line 112
TrinaryLogic
isDeprecated()
Determine whether the property is deprecated.
at line 120
string|null
getDeprecatedDescription()
Get the property's deprecation description.
at line 128
TrinaryLogic
isInternal()
Determine whether the property is internal.