PHP Класс LeanMapper\Reflection\Property

Автор: Vojtěch Kohout
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
checkContainsEnumeration ( )

Описание методов

__construct() публичный метод

public __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 = [] )
$name string
$entityReflection EntityReflection
$column string | null
$type PropertyType
$isWritable boolean
$isNullable boolean
$containsCollection boolean
$hasDefaultValue boolean
$defaultValue mixed | null
$relationship LeanMapper\Relationship\HasOne | LeanMapper\Relationship\HasMany | LeanMapper\Relationship\BelongsToOne | LeanMapper\Relationship\BelongsToMany | null
$propertyMethods PropertyMethods
$propertyFilters PropertyFilters
$propertyPasses PropertyPasses
$propertyValuesEnum PropertyValuesEnum
$customFlags array

containsCollection() публичный метод

Tells whether property is assumed to contain collection
public containsCollection ( ) : boolean
Результат boolean

containsEnumeration() публичный метод

Tells whether property contains enumeration
public containsEnumeration ( ) : boolean
Результат boolean

getColumn() публичный метод

Gets name of column holding low-level value
public getColumn ( ) : string | null
Результат string | null

getCustomFlagValue() публичный метод

Gets value of requested custom flag
public getCustomFlagValue ( string $name ) : string
$name string
Результат string

getDefaultValue() публичный метод

Gets default value of property (as defined in annotation)
public getDefaultValue ( ) : mixed | null
Результат mixed | null

getEnumValues() публичный метод

Gets possible enumeration values
public getEnumValues ( ) : array
Результат array

getFilters() публичный метод

Gets property filters
public getFilters ( integer $index ) : array | null
$index integer
Результат array | null

getFiltersTargetedArgs() публичный метод

Gets filters arguments hard-coded in annotation
public getFiltersTargetedArgs ( integer $index ) : array | null
$index integer
Результат array | null

getGetter() публичный метод

Gets getter method
public getGetter ( ) : string | null
Результат string | null

getGetterPass() публичный метод

Gets getter pass
public getGetterPass ( ) : string | null
Результат string | null

getName() публичный метод

Gets property name
public getName ( ) : string
Результат string

getRelationship() публичный метод

Returns relationship that property represents
public getRelationship ( ) : LeanMapper\Relationship\BelongsToMany | LeanMapper\Relationship\BelongsToOne | HasMany | HasOne | null
Результат LeanMapper\Relationship\BelongsToMany | LeanMapper\Relationship\BelongsToOne | LeanMapper\Relationship\HasMany | LeanMapper\Relationship\HasOne | null

getSetter() публичный метод

Gets setter method
public getSetter ( ) : string | null
Результат string | null

getSetterPass() публичный метод

Gets setter pass
public getSetterPass ( ) : string | null
Результат string | null

getType() публичный метод

Gets property type
public getType ( ) : string
Результат string

hasCustomFlag() публичный метод

Tells whether property has custom flag
public hasCustomFlag ( string $name ) : boolean
$name string
Результат boolean

hasDefaultValue() публичный метод

Tells whether property has default value (defined in annotation)
public hasDefaultValue ( ) : boolean
Результат boolean

hasRelationship() публичный метод

Tells whether property represents relationship
public hasRelationship ( ) : boolean
Результат boolean

isBasicType() публичный метод

Tells whether property type is basic type (boolean|integer|float|string|array)
public isBasicType ( ) : boolean
Результат boolean

isNullable() публичный метод

Tells whether property can be null
public isNullable ( ) : boolean
Результат boolean

isValueFromEnum() публичный метод

Tells wheter given value is from enumeration
public isValueFromEnum ( mixed $value ) : boolean
$value mixed
Результат boolean

isWritable() публичный метод

Tells whether property is writable
public isWritable ( ) : boolean
Результат boolean