Property | 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. |
Method | 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 ) : |
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 |
public static fromString ( string $ref ) : |
||
$ref | string | |
return |
public getRelationshipName ( ) : string | ||
return | string |
public setRelationshipName ( string $relationship_name ) | ||
$relationship_name | string |
public setSourceClass ( string $source_class ) | ||
$source_class | string |
protected string $source_class | ||
return | string |