PHP Класс Bravo3\Orm\Drivers\Common\Ref

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

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

Свойство Тип Описание
$entity_id string
$relationship_name string
$source_class string TODO: Storing the class name in the database is a terrible idea. Ideally this needs to be a table name, however the ability to dereference a Ref requires class meta-data. This WILL be changed at some point.

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

Метод Описание
__construct ( string $source_class, string $entity_id, string $relationship_name ) Create an inverse reference to an entity
__toString ( ) : string Get the ref in string form
fromString ( string $ref ) : Ref Create a ref from a string interpretation
getEntityId ( ) : string Get EntityId
getRelationshipName ( ) : string Get RelationshipName
getSourceClass ( ) : string Get SourceClass
setEntityId ( string $entity_id ) Set EntityId
setRelationshipName ( string $relationship_name ) Set RelationshipName
setSourceClass ( string $source_class ) Set SourceClass

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

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

Create an inverse reference to an entity
public __construct ( string $source_class, string $entity_id, string $relationship_name )
$source_class string
$entity_id string
$relationship_name string

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

Get the ref in string form
public __toString ( ) : string
Результат string

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

Create a ref from a string interpretation
public static fromString ( string $ref ) : Ref
$ref string
Результат Ref

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

Get EntityId
public getEntityId ( ) : string
Результат string

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

Get RelationshipName
public getRelationshipName ( ) : string
Результат string

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

Get SourceClass
public getSourceClass ( ) : string
Результат string

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

Set EntityId
public setEntityId ( string $entity_id )
$entity_id string

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

Set RelationshipName
public setRelationshipName ( string $relationship_name )
$relationship_name string

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

Set SourceClass
public setSourceClass ( string $source_class )
$source_class string

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

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

protected string $entity_id
Результат string

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

protected string $relationship_name
Результат string

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

TODO: Storing the class name in the database is a terrible idea. Ideally this needs to be a table name, however the ability to dereference a Ref requires class meta-data. This WILL be changed at some point.
protected string $source_class
Результат string