PHP Class Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator

Author: Alexander Miertsch ([email protected])
Inheritance: implements Prooph\EventStore\Aggregate\AggregateTranslator
Mostra file Open project: prooph/event-sourcing Class Usage Examples

Protected Properties

Property Type Description
$aggregateRootDecorator AggregateRootDecorator

Public Methods

Method Description
extractAggregateId ( object $anEventSourcedAggregateRoot ) : string
extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer
extractPendingStreamEvents ( object $anEventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[]
getAggregateRootDecorator ( ) : AggregateRootDecorator
reconstituteAggregateFromHistory ( AggregateType $aggregateType, Iterator $historyEvents ) : object
replayStreamEvents ( object $anEventSourcedAggregateRoot, Iterator $events )
setAggregateRootDecorator ( AggregateRootDecorator $anAggregateRootDecorator )

Method Details

extractAggregateId() public method

public extractAggregateId ( object $anEventSourcedAggregateRoot ) : string
$anEventSourcedAggregateRoot object
return string

extractAggregateVersion() public method

public extractAggregateVersion ( object $eventSourcedAggregateRoot ) : integer
$eventSourcedAggregateRoot object
return integer

extractPendingStreamEvents() public method

public extractPendingStreamEvents ( object $anEventSourcedAggregateRoot ) : Prooph\Common\Messaging\Message[]
$anEventSourcedAggregateRoot object
return Prooph\Common\Messaging\Message[]

getAggregateRootDecorator() public method

public getAggregateRootDecorator ( ) : AggregateRootDecorator
return AggregateRootDecorator

reconstituteAggregateFromHistory() public method

public reconstituteAggregateFromHistory ( AggregateType $aggregateType, Iterator $historyEvents ) : object
$aggregateType Prooph\EventStore\Aggregate\AggregateType
$historyEvents Iterator
return object reconstructed AggregateRoot

replayStreamEvents() public method

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

setAggregateRootDecorator() public method

public setAggregateRootDecorator ( AggregateRootDecorator $anAggregateRootDecorator )
$anAggregateRootDecorator AggregateRootDecorator

Property Details

$aggregateRootDecorator protected_oe property

protected AggregateRootDecorator,Prooph\EventSourcing\EventStoreIntegration $aggregateRootDecorator
return AggregateRootDecorator