PHP Class Prooph\EventStore\Snapshot\SnapshotStore

Afficher le fichier Open project: prooph/event-store Class Usage Examples

Protected Properties

Свойство Type Description
$adapter Prooph\EventStore\Snapshot\Adapter\Adapter

Méthodes publiques

Méthode Description
__construct ( Prooph\EventStore\Snapshot\Adapter\Adapter $adapter )
get ( AggregateType $aggregateType, string $aggregateId ) : Snapshot | null
save ( Snapshot $snapshot ) : void Save aggregate root

Method Details

__construct() public méthode

public __construct ( Prooph\EventStore\Snapshot\Adapter\Adapter $adapter )
$adapter Prooph\EventStore\Snapshot\Adapter\Adapter

get() public méthode

public get ( AggregateType $aggregateType, string $aggregateId ) : Snapshot | null
$aggregateType Prooph\EventStore\Aggregate\AggregateType
$aggregateId string
Résultat Snapshot | null

save() public méthode

Save aggregate root
public save ( Snapshot $snapshot ) : void
$snapshot Snapshot
Résultat void

Property Details

$adapter protected_oe property

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