PHP Class Nextras\Orm\Entity\Reflection\EntityMetadata

Inheritance: extends Nette\Object
Mostrar archivo Open project: nextras/orm Class Usage Examples

Public Methods

Method Description
__construct ( $className )
getClassName ( )
getPrimaryKey ( ) : array
getProperties ( ) : PropertyMetadata[]
getProperty ( string $name ) : PropertyMetadata
hasProperty ( string $name ) : boolean
setPrimaryKey ( array $primaryKey )
setProperty ( string $name, PropertyMetadata $property )

Method Details

__construct() public method

public __construct ( $className )

getClassName() public method

public getClassName ( )

getPrimaryKey() public method

public getPrimaryKey ( ) : array
return array

getProperties() public method

public getProperties ( ) : PropertyMetadata[]
return PropertyMetadata[]

getProperty() public method

public getProperty ( string $name ) : PropertyMetadata
$name string
return PropertyMetadata

hasProperty() public method

public hasProperty ( string $name ) : boolean
$name string
return boolean

setPrimaryKey() public method

public setPrimaryKey ( array $primaryKey )
$primaryKey array

setProperty() public method

public setProperty ( string $name, PropertyMetadata $property )
$name string
$property PropertyMetadata