Overview

Namespaces

  • LeanMapper
    • Exception
    • Reflection
    • Relationship

Classes

  • Aliases
  • AliasesBuilder
  • AliasesParser
  • AnnotationsParser
  • EntityReflection
  • Property
  • PropertyFactory
  • PropertyFilters
  • PropertyType
  • PropertyValuesEnum
  • Overview
  • Namespace
  • Class

Class Property

Entity property (field) reflection

Namespace: LeanMapper\Reflection
Author: Vojtěch Kohout
Located at Reflection/Property.php
Methods summary
public
# __construct( string $name, string|null $column, LeanMapper\Reflection\PropertyType $type, boolean $isWritable, boolean $isNullable, boolean $containsCollection, LeanMapper\Relationship\HasOne|LeanMapper\Relationship\HasMany|LeanMapper\Relationship\BelongsToOne|LeanMapper\Relationship\BelongsToMany|null $relationship = null, LeanMapper\Reflection\PropertyFilters $propertyFilters = null, LeanMapper\Reflection\PropertyValuesEnum $propertyValuesEnum = null, string|null $extra = null )

Parameters

$name
$column
$type
$isWritable
$isNullable
$containsCollection
$relationship
$propertyFilters
$propertyValuesEnum
$extra
public string
# getName( )

Returns property name

Returns property name

Returns

string
public string|null
# getColumn( )

Returns property column

Returns property column

Returns

string|null
public boolean
# containsCollection( )

Tells whether property is assumed to contain collection

Tells whether property is assumed to contain collection

Returns

boolean
public string
# getType( )

Returns property type

Returns property type

Returns

string
public boolean
# isBasicType( )

Tells whether property type is basic type (boolean|integer|float|string|array)

Tells whether property type is basic type (boolean|integer|float|string|array)

Returns

boolean
public boolean
# isWritable( )

Tells whether property is writable

Tells whether property is writable

Returns

boolean
public boolean
# isNullable( )

Tells whether property can be null

Tells whether property can be null

Returns

boolean
public boolean
# hasRelationship( )

Tells whether property represents relationship

Tells whether property represents relationship

Returns

boolean
public LeanMapper\Relationship\BelongsToMany|LeanMapper\Relationship\BelongsToOne|LeanMapper\Relationship\HasMany|LeanMapper\Relationship\HasOne|null
# getRelationship( )

Returns relationship that property represents

Returns relationship that property represents

Returns

LeanMapper\Relationship\BelongsToMany|LeanMapper\Relationship\BelongsToOne|LeanMapper\Relationship\HasMany|LeanMapper\Relationship\HasOne|null
public string[]|null
# getFilters( integer|null $index = null )

Returns property filters

Returns property filters

Parameters

$index

Returns

string[]|null
public boolean
# containsEnumeration( )

Tells whether property contains enumeration

Tells whether property contains enumeration

Returns

boolean
public boolean
# isValueFromEnum( mixed $value )

Tells wheter given value is from enumeration of possible values

Tells wheter given value is from enumeration of possible values

Parameters

$value

Returns

boolean

Throws

LeanMapper\Exception\InvalidMethodCallException
public string|null
# getExtra( )

Returns value of m:extra flag (if given)

Returns value of m:extra flag (if given)

Returns

string|null
tharos/leanmapper v1.4.0 API documentation API documentation generated by ApiGen