Метод | Описание | |
---|---|---|
__construct ( null | string $identifierMethodName = null, null | string $versionMethodName = null, null | string $popRecordedEventsMethodName = null, null | string $replayEventsMethodsName = null, null | string $staticReconstituteFromHistoryMethodName = null, null | callable $eventToMessageCallback = null, null | callable $messageToEventCallback = null ) | ||
extractAggregateId ( object $eventSourcedAggregateRoot ) : string | ||
extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer | ||
extractPendingStreamEvents ( object $eventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[] | ||
reconstituteAggregateFromHistory ( |
||
replayStreamEvents ( object $eventSourcedAggregateRoot, Iterator $events ) |
public __construct ( null | string $identifierMethodName = null, null | string $versionMethodName = null, null | string $popRecordedEventsMethodName = null, null | string $replayEventsMethodsName = null, null | string $staticReconstituteFromHistoryMethodName = null, null | callable $eventToMessageCallback = null, null | callable $messageToEventCallback = null ) | ||
$identifierMethodName | null | string | |
$versionMethodName | null | string | |
$popRecordedEventsMethodName | null | string | |
$replayEventsMethodsName | null | string | |
$staticReconstituteFromHistoryMethodName | null | string | |
$eventToMessageCallback | null | callable | |
$messageToEventCallback | null | callable |
public extractAggregateId ( object $eventSourcedAggregateRoot ) : string | ||
$eventSourcedAggregateRoot | object | |
Результат | string |
public extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer | ||
$eventSourcedAggregateRoot | object | |
Результат | integer |
public extractPendingStreamEvents ( object $eventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[] | ||
$eventSourcedAggregateRoot | object | |
Результат | Prooph\Common\Messaging\Message[] |
public reconstituteAggregateFromHistory ( |
||
$aggregateType | ||
$historyEvents | Iterator | |
Результат | object | reconstructed EventSourcedAggregateRoot |
public replayStreamEvents ( object $eventSourcedAggregateRoot, Iterator $events ) | ||
$eventSourcedAggregateRoot | object | |
$events | Iterator |