PHP Интерфейс Prooph\EventStore\Aggregate\AggregateTranslator

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

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

Метод Описание
extractAggregateId ( object $eventSourcedAggregateRoot ) : string
extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer
extractPendingStreamEvents ( object $eventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[]
reconstituteAggregateFromHistory ( AggregateType $aggregateType, Iterator $historyEvents ) : object
replayStreamEvents ( $anEventSourcedAggregateRoot, Iterator $events )

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

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

public extractAggregateId ( object $eventSourcedAggregateRoot ) : string
$eventSourcedAggregateRoot object
Результат string

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

public extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer
$eventSourcedAggregateRoot object
Результат integer

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

public extractPendingStreamEvents ( object $eventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[]
$eventSourcedAggregateRoot object
Результат Prooph\Common\Messaging\Message[]

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

public reconstituteAggregateFromHistory ( AggregateType $aggregateType, Iterator $historyEvents ) : object
$aggregateType AggregateType
$historyEvents Iterator
Результат object reconstructed EventSourcedAggregateRoot

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

public replayStreamEvents ( $anEventSourcedAggregateRoot, Iterator $events )
$anEventSourcedAggregateRoot
$events Iterator