PHP Class Prooph\EventStore\EventStore

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

Protected Properties

Свойство Type Description
$actionEventEmitter Prooph\Common\Event\ActionEventEmitter
$adapter Prooph\EventStore\Adapter\Adapter
$inTransaction boolean
$recordedEvents Iterator

Méthodes publiques

Méthode Description
__construct ( Prooph\EventStore\Adapter\Adapter $adapter, Prooph\Common\Event\ActionEventEmitter $actionEventEmitter ) Constructor
appendTo ( StreamName $streamName, Iterator $streamEvents ) : void
beginTransaction ( ) Begin transaction
commit ( ) Commit transaction
create ( Stream $stream ) : void
getActionEventEmitter ( ) : Prooph\Common\Event\ActionEventEmitter
getAdapter ( ) : Prooph\EventStore\Adapter\Adapter Get the active EventStoreAdapter
getRecordedEvents ( ) : Iterator
isInTransaction ( ) : boolean
load ( StreamName $streamName, null | integer $minVersion = null ) : Stream
loadEventsByMetadataFrom ( StreamName $streamName, array $metadata, null | integer $minVersion = null ) : Iterator
replay ( array $streamNames, DateTimeInterface $since = null, array $metadatas = null ) : CompositeIterator
rollback ( ) Rollback transaction
transactional ( callable $callable ) : mixed

Method Details

__construct() public méthode

Constructor
public __construct ( Prooph\EventStore\Adapter\Adapter $adapter, Prooph\Common\Event\ActionEventEmitter $actionEventEmitter )
$adapter Prooph\EventStore\Adapter\Adapter
$actionEventEmitter Prooph\Common\Event\ActionEventEmitter

appendTo() public méthode

public appendTo ( StreamName $streamName, Iterator $streamEvents ) : void
$streamName Prooph\EventStore\Stream\StreamName
$streamEvents Iterator
Résultat void

beginTransaction() public méthode

Begin transaction
public beginTransaction ( )

commit() public méthode

Commit transaction
public commit ( )

create() public méthode

public create ( Stream $stream ) : void
$stream Prooph\EventStore\Stream\Stream
Résultat void

getActionEventEmitter() public méthode

public getActionEventEmitter ( ) : Prooph\Common\Event\ActionEventEmitter
Résultat Prooph\Common\Event\ActionEventEmitter

getAdapter() public méthode

Get the active EventStoreAdapter
public getAdapter ( ) : Prooph\EventStore\Adapter\Adapter
Résultat Prooph\EventStore\Adapter\Adapter

getRecordedEvents() public méthode

public getRecordedEvents ( ) : Iterator
Résultat Iterator

isInTransaction() public méthode

public isInTransaction ( ) : boolean
Résultat boolean

load() public méthode

public load ( StreamName $streamName, null | integer $minVersion = null ) : Stream
$streamName Prooph\EventStore\Stream\StreamName
$minVersion null | integer
Résultat Prooph\EventStore\Stream\Stream

loadEventsByMetadataFrom() public méthode

public loadEventsByMetadataFrom ( StreamName $streamName, array $metadata, null | integer $minVersion = null ) : Iterator
$streamName Prooph\EventStore\Stream\StreamName
$metadata array
$minVersion null | integer
Résultat Iterator

replay() public méthode

public replay ( array $streamNames, DateTimeInterface $since = null, array $metadatas = null ) : CompositeIterator
$streamNames array
$since DateTimeInterface
$metadatas array One metadata array per stream name, same index order is required
Résultat Prooph\EventStore\Util\CompositeIterator

rollback() public méthode

Rollback transaction
public rollback ( )

transactional() public méthode

public transactional ( callable $callable ) : mixed
$callable callable
Résultat mixed

Property Details

$actionEventEmitter protected_oe property

protected ActionEventEmitter,Prooph\Common\Event $actionEventEmitter
Résultat Prooph\Common\Event\ActionEventEmitter

$adapter protected_oe property

protected Adapter,Prooph\EventStore\Adapter $adapter
Résultat Prooph\EventStore\Adapter\Adapter

$inTransaction protected_oe property

protected bool $inTransaction
Résultat boolean

$recordedEvents protected_oe property

protected Iterator $recordedEvents
Résultat Iterator