PHP Interface Prooph\EventStore\Adapter\Adapter

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

Public Methods

Method Description
appendTo ( StreamName $streamName, Iterato\Iterator $domainEvents ) : void
create ( Stream $stream ) : void
load ( StreamName $streamName, null | integer $minVersion = null ) : Stream | null
loadEvents ( StreamName $streamName, array $metadata = [], null | integer $minVersion = null ) : Iterato\Iterator
replay ( StreamName $streamName, DateTimeInterfac\DateTimeInterface $since = null, array $metadata = [] ) : Iterato\Iterator

Method Details

appendTo() public method

public appendTo ( StreamName $streamName, Iterato\Iterator $domainEvents ) : void
$streamName Prooph\EventStore\Stream\StreamName
$domainEvents Iterato\Iterator
return void

create() public method

public create ( Stream $stream ) : void
$stream Prooph\EventStore\Stream\Stream
return void

load() public method

public load ( StreamName $streamName, null | integer $minVersion = null ) : Stream | null
$streamName Prooph\EventStore\Stream\StreamName
$minVersion null | integer Minimum version an event should have
return Prooph\EventStore\Stream\Stream | null

loadEvents() public method

public loadEvents ( StreamName $streamName, array $metadata = [], null | integer $minVersion = null ) : Iterato\Iterator
$streamName Prooph\EventStore\Stream\StreamName
$metadata array If empty array is provided, then all events should be returned
$minVersion null | integer Minimum version an event should have
return Iterato\Iterator

replay() public method

public replay ( StreamName $streamName, DateTimeInterfac\DateTimeInterface $since = null, array $metadata = [] ) : Iterato\Iterator
$streamName Prooph\EventStore\Stream\StreamName
$since DateTimeInterfac\DateTimeInterface
$metadata array
return Iterato\Iterator