PHP Class Bravo3\Orm\Services\Io\Reader

Mostrar archivo Open project: bravo3/orm Class Usage Examples

Protected Properties

Property Type Description
$entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity

Public Methods

Method 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 method

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

getEntityClassName() public static method

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

getId() public method

Get an ID for the given data
public getId ( ) : string
return string

getIndexValue() public method

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

getMethodValue() public method

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

getPropertyValue() public method

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

Property Details

$entity protected_oe property

protected object $entity
return object

$metadata protected_oe property

protected Entity,Bravo3\Orm\Mappers\Metadata $metadata
return Bravo3\Orm\Mappers\Metadata\Entity