PHP Интерфейс Storm\Core\Object\IEntityMap

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
Apply ( Domain $Domain, object $Entity, PropertyData $PropertyData ) : void Applies the supplied property data to the supplied entity instance.
Discard ( UnitOfWork $UnitOfWork, object $Entity ) : DiscardenceData Discards an entity's relationships to the supplied unit of work and returns the discardence data.
DiscardenceData ( array $DiscardenceData = [] ) : DiscardenceData
GetCollectionProperties ( ) : Storm\Core\Object\ICollectionProperty[]
GetDataProperties ( ) : Storm\Core\Object\IDataProperty[]
GetEntityProperties ( ) : Storm\Core\Object\IEntityProperty[]
GetEntityType ( ) : string
GetIdentityProperties ( ) : Storm\Core\Object\IProperty[]
GetProperties ( ) : Storm\Core\Object\IProperty[]
GetProperty ( string $Identifier ) : Storm\Core\Object\IProperty | null Gets a property by its identifier
GetRelationshipProperties ( ) : Storm\Core\Object\IRelationshipProperty[]
HasIdentity ( object $Entity ) : boolean Whether or not the entity has a full identity.
HasIdentityProperty ( string $Identifier ) : boolean Whether or not this map contains a property with the supplied identifier
HasProperty ( string $Identifier ) : boolean Whether or not this map contains a property withthe supplied identifier
HasRelationshipProperty ( string $Identifier ) : void Whether or not this map contains a relationship property with the supplied identifier
Identity ( object | null $Entity = null ) : Identity If the entity is null returns a new blank identity otherwise returns the identity of the supplied entity.
InititalizeProperties ( Domain $Domain ) : void Initializes the properties of the entity within the context of the parent domain.
Is ( Storm\Core\Object\IEntityMap $OtherEntityMap ) : boolean Whether or not this and the supplied entity map represent the same entity.
LoadEntity ( Domain $Domain, RevivalData $RevivalData, object $Entity ) : void Loads an entity instance with the supplied revival data.
Persist ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData Persists an entity's relationships to the supplied unit of work and returns the persistence data.
PersistRelationships ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData Persists an entity's relationships to the supplied unit of work.
PersistanceData ( array $PersistanceData = [] ) : PersistenceData
RevivalData ( array $RevivalData = [] ) : RevivalData
ReviveEntities ( Domain $Domain, array $RevivalDataArray ) : object[] Revives an array of entities from the supplied array of revival data.

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

Apply() публичный метод

Applies the supplied property data to the supplied entity instance.
public Apply ( Domain $Domain, object $Entity, PropertyData $PropertyData ) : void
$Domain Domain The object domain to revive in entity in.
$Entity object The entity to apply the property data
$PropertyData PropertyData The property data apply
Результат void

Discard() публичный метод

Discards an entity's relationships to the supplied unit of work and returns the discardence data.
public Discard ( UnitOfWork $UnitOfWork, object $Entity ) : DiscardenceData
$UnitOfWork UnitOfWork The unit of work to discard from
$Entity object The entity to discard
Результат DiscardenceData The discardence data of the entity

DiscardenceData() публичный метод

public DiscardenceData ( array $DiscardenceData = [] ) : DiscardenceData
$DiscardenceData array
Результат DiscardenceData

GetCollectionProperties() публичный метод

public GetCollectionProperties ( ) : Storm\Core\Object\ICollectionProperty[]
Результат Storm\Core\Object\ICollectionProperty[]

GetDataProperties() публичный метод

public GetDataProperties ( ) : Storm\Core\Object\IDataProperty[]
Результат Storm\Core\Object\IDataProperty[]

GetEntityProperties() публичный метод

public GetEntityProperties ( ) : Storm\Core\Object\IEntityProperty[]
Результат Storm\Core\Object\IEntityProperty[]

GetEntityType() публичный метод

public GetEntityType ( ) : string
Результат string

GetIdentityProperties() публичный метод

public GetIdentityProperties ( ) : Storm\Core\Object\IProperty[]
Результат Storm\Core\Object\IProperty[]

GetProperties() публичный метод

public GetProperties ( ) : Storm\Core\Object\IProperty[]
Результат Storm\Core\Object\IProperty[]

GetProperty() публичный метод

Gets a property by its identifier
public GetProperty ( string $Identifier ) : Storm\Core\Object\IProperty | null
$Identifier string The property identifier
Результат Storm\Core\Object\IProperty | null The matched property

GetRelationshipProperties() публичный метод

public GetRelationshipProperties ( ) : Storm\Core\Object\IRelationshipProperty[]
Результат Storm\Core\Object\IRelationshipProperty[]

HasIdentity() публичный метод

Whether or not the entity has a full identity.
public HasIdentity ( object $Entity ) : boolean
$Entity object The entity to check
Результат boolean

HasIdentityProperty() публичный метод

Whether or not this map contains a property with the supplied identifier
public HasIdentityProperty ( string $Identifier ) : boolean
$Identifier string The property identifier
Результат boolean

HasProperty() публичный метод

Whether or not this map contains a property withthe supplied identifier
public HasProperty ( string $Identifier ) : boolean
$Identifier string The property identifier
Результат boolean

HasRelationshipProperty() публичный метод

Whether or not this map contains a relationship property with the supplied identifier
public HasRelationshipProperty ( string $Identifier ) : void
$Identifier string The property identifier
Результат void

Identity() публичный метод

If the entity is null returns a new blank identity otherwise returns the identity of the supplied entity.
public Identity ( object | null $Entity = null ) : Identity
$Entity object | null
Результат Identity The entity's identity

InititalizeProperties() публичный метод

Initializes the properties of the entity within the context of the parent domain.
public InititalizeProperties ( Domain $Domain ) : void
$Domain Domain The parent domain
Результат void

Is() публичный метод

Whether or not this and the supplied entity map represent the same entity.
public Is ( Storm\Core\Object\IEntityMap $OtherEntityMap ) : boolean
$OtherEntityMap Storm\Core\Object\IEntityMap Another entity map
Результат boolean

LoadEntity() публичный метод

Loads an entity instance with the supplied revival data.
public LoadEntity ( Domain $Domain, RevivalData $RevivalData, object $Entity ) : void
$Domain Domain
$RevivalData RevivalData The revival data to load the entity with
$Entity object The entity to load
Результат void

Persist() публичный метод

Persists an entity's relationships to the supplied unit of work and returns the persistence data.
public Persist ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData
$UnitOfWork UnitOfWork The unit of work to persist to
$Entity object The entity to persist
Результат PersistenceData The persistence data of the entity

PersistRelationships() публичный метод

Persists an entity's relationships to the supplied unit of work.
public PersistRelationships ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData
$UnitOfWork UnitOfWork The unit of work to persist to
$Entity object The entity to persist
Результат PersistenceData The persistence data of the entity

PersistanceData() публичный метод

public PersistanceData ( array $PersistanceData = [] ) : PersistenceData
$PersistanceData array
Результат PersistenceData

RevivalData() публичный метод

public RevivalData ( array $RevivalData = [] ) : RevivalData
$RevivalData array
Результат RevivalData

ReviveEntities() публичный метод

Revives an array of entities from the supplied array of revival data.
public ReviveEntities ( Domain $Domain, array $RevivalDataArray ) : object[]
$Domain Domain
$RevivalDataArray array The array of revival data
Результат object[] The revived entities