PHP Class Bravo3\Orm\Drivers\Common\Ref

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

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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() public méthode

Get the ref in string form
public __toString ( ) : string
Résultat string

fromString() public static méthode

Create a ref from a string interpretation
public static fromString ( string $ref ) : Ref
$ref string
Résultat Ref

getEntityId() public méthode

Get EntityId
public getEntityId ( ) : string
Résultat string

getRelationshipName() public méthode

Get RelationshipName
public getRelationshipName ( ) : string
Résultat string

getSourceClass() public méthode

Get SourceClass
public getSourceClass ( ) : string
Résultat string

setEntityId() public méthode

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

setRelationshipName() public méthode

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

setSourceClass() public méthode

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

Property Details

$entity_id protected_oe property

protected string $entity_id
Résultat string

$relationship_name protected_oe property

protected string $relationship_name
Résultat string

$source_class protected_oe property

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
Résultat string