PHP Класс Prooph\EventSourcing\EventStoreIntegration\AggregateRootDecorator

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

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

Метод Описание
extractAggregateId ( AggregateRoot $anAggregateRoot ) : string
extractAggregateVersion ( AggregateRoot $anAggregateRoot ) : integer
extractRecordedEvents ( AggregateRoot $anAggregateRoot ) : AggregateChanged[]
fromHistory ( string $arClass, Iterator $aggregateChangedEvents ) : AggregateRoot
newInstance ( ) : static
replayStreamEvents ( AggregateRoot $aggregateRoot, Iterator $events )

Защищенные методы

Метод Описание
aggregateId ( ) : string

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

aggregateId() защищенный Метод

protected aggregateId ( ) : string
Результат string representation of the unique identifier of the aggregate root

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

public extractAggregateId ( AggregateRoot $anAggregateRoot ) : string
$anAggregateRoot Prooph\EventSourcing\AggregateRoot
Результат string

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

public extractAggregateVersion ( AggregateRoot $anAggregateRoot ) : integer
$anAggregateRoot Prooph\EventSourcing\AggregateRoot
Результат integer

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

public extractRecordedEvents ( AggregateRoot $anAggregateRoot ) : AggregateChanged[]
$anAggregateRoot Prooph\EventSourcing\AggregateRoot
Результат Prooph\EventSourcing\AggregateChanged[]

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

public fromHistory ( string $arClass, Iterator $aggregateChangedEvents ) : AggregateRoot
$arClass string
$aggregateChangedEvents Iterator
Результат Prooph\EventSourcing\AggregateRoot

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

public static newInstance ( ) : static
Результат static

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

public replayStreamEvents ( AggregateRoot $aggregateRoot, Iterator $events )
$aggregateRoot Prooph\EventSourcing\AggregateRoot
$events Iterator