PHP Класс Bravo3\Orm\Services\Io\Reader

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

getEntityClassName() публичный статический Метод

Get the true class name of the entity, resolving any proxy wrappers
public static getEntityClassName ( object | string $entity ) : string
$entity object | string
Результат string

getId() публичный Метод

Get an ID for the given data
public getId ( ) : string
Результат string

getIndexValue() публичный Метод

Get the value of an index
public getIndexValue ( Bravo3\Orm\Mappers\Metadata\Index $index ) : string
$index Bravo3\Orm\Mappers\Metadata\Index
Результат string

getMethodValue() публичный Метод

Get the value of a method on the entity
public getMethodValue ( $name ) : mixed
$name
Результат mixed

getPropertyValue() публичный Метод

Get the value of a property on the entity
public getPropertyValue ( string $name ) : mixed
$name string
Результат mixed

Описание свойств

$entity защищенное свойство

protected object $entity
Результат object

$metadata защищенное свойство

protected Entity,Bravo3\Orm\Mappers\Metadata $metadata
Результат Bravo3\Orm\Mappers\Metadata\Entity