Overview

Namespaces

  • LeanMapper
    • Exception
    • Reflection
    • Relationship

Classes

  • Aliases
  • AliasesBuilder
  • AliasesParser
  • AnnotationsParser
  • EntityReflection
  • Property
  • PropertyFactory
  • PropertyFilters
  • PropertyType
  • 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, LeanMapper\Reflection\PropertyType $type, boolean $isNullable, boolean $containsCollection, LeanMapper\Relationship\HasOne|LeanMapper\Relationship\HasMany|LeanMapper\Relationship\BelongsToOne|LeanMapper\Relationship\BelongsToMany|null $relationship = null, LeanMapper\Reflection\PropertyFilters $filters = null )

Parameters

$name
$type
$isNullable
$containsCollection
$relationship
$filters
public string
# getName( )

Returns property name

Returns property name

Returns

string
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
# 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[]
# getFilters( )

Returns property filters

Returns property filters

Returns

string[]
tharos/leanmapper v1.3.0 API documentation API documentation generated by ApiGen