PHP Class LeanMapper\Reflection\EntityReflection

Author: Vojtěch Kohout
Inheritance: extends ReflectionClass
Mostra file Open project: tharos/leanmapper Class Usage Examples

Public Methods

Method Description
__construct ( mixed $argument, LeanMapper\IMapper $mapper = null )
getAliases ( ) : Aliases Gets Aliases instance relevant to current class
getDocComment ( ) : string Gets doc comment of current class
getEntityProperties ( ) : Property[] Gets array of all entity's properties
getEntityProperty ( string $name ) : Property | null Gets requested entity's property
getGetter ( string $name ) : ReflectionMetho\ReflectionMethod | null Gets requested getter's reflection
getGetters ( ) : ReflectionMetho\ReflectionMethod[] Gets array of getter's reflections
getParentClass ( ) : self | null Gets parent entity's reflection
getSetter ( string $name ) : ReflectionMetho\ReflectionMethod | null Gets requested setter's reflection

Private Methods

Method Description
getFamilyLine ( ) : self[]
initGettersAndSetters ( )
parseProperties ( )

Method Details

__construct() public method

public __construct ( mixed $argument, LeanMapper\IMapper $mapper = null )
$argument mixed
$mapper LeanMapper\IMapper

getAliases() public method

Gets Aliases instance relevant to current class
public getAliases ( ) : Aliases
return Aliases

getDocComment() public method

Gets doc comment of current class
public getDocComment ( ) : string
return string

getEntityProperties() public method

Gets array of all entity's properties
public getEntityProperties ( ) : Property[]
return Property[]

getEntityProperty() public method

Gets requested entity's property
public getEntityProperty ( string $name ) : Property | null
$name string
return Property | null

getGetter() public method

Gets requested getter's reflection
public getGetter ( string $name ) : ReflectionMetho\ReflectionMethod | null
$name string
return ReflectionMetho\ReflectionMethod | null

getGetters() public method

Gets array of getter's reflections
public getGetters ( ) : ReflectionMetho\ReflectionMethod[]
return ReflectionMetho\ReflectionMethod[]

getParentClass() public method

Gets parent entity's reflection
public getParentClass ( ) : self | null
return self | null

getSetter() public method

Gets requested setter's reflection
public getSetter ( string $name ) : ReflectionMetho\ReflectionMethod | null
$name string
return ReflectionMetho\ReflectionMethod | null