PHP Class Bravo3\Orm\Services\Io\Reader

Afficher le fichier Open project: bravo3/orm Class Usage Examples

Protected Properties

Свойство Type Description
$entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity

Méthodes publiques

Méthode Description
__construct ( Entity $metadata, object $entity )
getEntityClassName ( object | string $entity ) : string Get the true class name of the entity, resolving any proxy wrappers
getId ( ) : string Get an ID for the given data
getIndexValue ( Bravo3\Orm\Mappers\Metadata\Index $index ) : string Get the value of an index
getMethodValue ( $name ) : mixed Get the value of a method on the entity
getPropertyValue ( string $name ) : mixed Get the value of a property on the entity

Method Details

__construct() public méthode

public __construct ( Entity $metadata, object $entity )
$metadata Bravo3\Orm\Mappers\Metadata\Entity
$entity object

getEntityClassName() public static méthode

Get the true class name of the entity, resolving any proxy wrappers
public static getEntityClassName ( object | string $entity ) : string
$entity object | string
Résultat string

getId() public méthode

Get an ID for the given data
public getId ( ) : string
Résultat string

getIndexValue() public méthode

Get the value of an index
public getIndexValue ( Bravo3\Orm\Mappers\Metadata\Index $index ) : string
$index Bravo3\Orm\Mappers\Metadata\Index
Résultat string

getMethodValue() public méthode

Get the value of a method on the entity
public getMethodValue ( $name ) : mixed
$name
Résultat mixed

getPropertyValue() public méthode

Get the value of a property on the entity
public getPropertyValue ( string $name ) : mixed
$name string
Résultat mixed

Property Details

$entity protected_oe property

protected object $entity
Résultat object

$metadata protected_oe property

protected Entity,Bravo3\Orm\Mappers\Metadata $metadata
Résultat Bravo3\Orm\Mappers\Metadata\Entity