PHP Interface Prooph\EventStore\Aggregate\AggregateTranslator

Author: Alexander Miertsch ([email protected])
Afficher le fichier Open project: prooph/event-store Interface Usage Examples

Méthodes publiques

Méthode Description
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 )

Method Details

extractAggregateId() public méthode

public extractAggregateId ( object $eventSourcedAggregateRoot ) : string
$eventSourcedAggregateRoot object
Résultat string

extractAggregateVersion() public méthode

public extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer
$eventSourcedAggregateRoot object
Résultat integer

extractPendingStreamEvents() public méthode

public extractPendingStreamEvents ( object $eventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[]
$eventSourcedAggregateRoot object
Résultat Prooph\Common\Messaging\Message[]

reconstituteAggregateFromHistory() public méthode

public reconstituteAggregateFromHistory ( AggregateType $aggregateType, Iterator $historyEvents ) : object
$aggregateType AggregateType
$historyEvents Iterator
Résultat object reconstructed EventSourcedAggregateRoot

replayStreamEvents() public méthode

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