Method |
Description |
|
__construct ( string $name, EntityReflection $entityReflection, string | null $column, PropertyType $type, boolean $isWritable, boolean $isNullable, boolean $containsCollection, boolean $hasDefaultValue, mixed | null $defaultValue = null, HasOne | HasMany | LeanMapper\Relationship\BelongsToOne | LeanMapper\Relationship\BelongsToMany | null $relationship = null, PropertyMethods $propertyMethods = null, PropertyFilters $propertyFilters = null, PropertyPasses $propertyPasses = null, PropertyValuesEnum $propertyValuesEnum = null, array $customFlags = [] ) |
|
|
containsCollection ( ) : boolean |
Tells whether property is assumed to contain collection |
|
containsEnumeration ( ) : boolean |
Tells whether property contains enumeration |
|
getColumn ( ) : string | null |
Gets name of column holding low-level value |
|
getCustomFlagValue ( string $name ) : string |
Gets value of requested custom flag |
|
getDefaultValue ( ) : mixed | null |
Gets default value of property (as defined in annotation) |
|
getEnumValues ( ) : array |
Gets possible enumeration values |
|
getFilters ( integer $index ) : array | null |
Gets property filters |
|
getFiltersTargetedArgs ( integer $index ) : array | null |
Gets filters arguments hard-coded in annotation |
|
getGetter ( ) : string | null |
Gets getter method |
|
getGetterPass ( ) : string | null |
Gets getter pass |
|
getName ( ) : string |
Gets property name |
|
getRelationship ( ) : LeanMapper\Relationship\BelongsToMany | LeanMapper\Relationship\BelongsToOne | HasMany | HasOne | null |
Returns relationship that property represents |
|
getSetter ( ) : string | null |
Gets setter method |
|
getSetterPass ( ) : string | null |
Gets setter pass |
|
getType ( ) : string |
Gets property type |
|
hasCustomFlag ( string $name ) : boolean |
Tells whether property has custom flag |
|
hasDefaultValue ( ) : boolean |
Tells whether property has default value (defined in annotation) |
|
hasRelationship ( ) : boolean |
Tells whether property represents relationship |
|
isBasicType ( ) : boolean |
Tells whether property type is basic type (boolean|integer|float|string|array) |
|
isNullable ( ) : boolean |
Tells whether property can be null |
|
isValueFromEnum ( mixed $value ) : boolean |
Tells wheter given value is from enumeration |
|
isWritable ( ) : boolean |
Tells whether property is writable |
|