Property
class Property extends ReflectionProperty (View source)
Represents property, that can be decorated.
Properties
protected string | $dataType | Property data type. | |
protected AnnotationManager | $annotationManager | Annotation manager. |
Methods
Create class instance from reflection property.
Determines property data type.
Returns the raw data type.
Determines if property data type isn't class or interface.
Determines if property data type is an array.
Determines if property data type is a collection.
Returns annotation of a property.
Returns annotations defined at property or in class, set in @var
annotation of a property.
Returns string representation of a property.
No description
Details
at line 46
__construct(ReflectionProperty $property, AnnotationManager $annotation_manager)
Create class instance from reflection property.
at line 58
string
getDataType()
Determines property data type.
at line 74
string
getRawDataType()
Returns the raw data type.
at line 96
boolean
isSimpleDataType()
Determines if property data type isn't class or interface.
at line 111
boolean
isDataTypeArray()
Determines if property data type is an array.
at line 121
boolean
isDataTypeCollection()
Determines if property data type is a collection.
at line 136
IAnnotation[]
getAnnotations(string $annotation_class)
Returns annotation of a property.
at line 148
IAnnotation[]
getAnnotationsFromPropertyOrClass(string $annotation_class)
Returns annotations defined at property or in class, set in @var
annotation of a property.
at line 164
string
__toString()
Returns string representation of a property.