PHP 클래스 LeanMapper\Reflection\Property

저자: Vojtěch Kohout
파일 보기 프로젝트 열기: tharos/leanmapper 1 사용 예제들

공개 메소드들

메소드 설명
__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