PHP Interface Prooph\EventStore\Snapshot\Adapter\Adapter

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

Méthodes publiques

Méthode Description
get ( AggregateType $aggregateType, string $aggregateId ) : Snapshot Get the aggregate root if it exists otherwise null
save ( Snapshot $snapshot ) : void Save a snapshot

Method Details

get() public méthode

Get the aggregate root if it exists otherwise null
public get ( AggregateType $aggregateType, string $aggregateId ) : Snapshot
$aggregateType Prooph\EventStore\Aggregate\AggregateType
$aggregateId string
Résultat Prooph\EventStore\Snapshot\Snapshot

save() public méthode

Save a snapshot
public save ( Snapshot $snapshot ) : void
$snapshot Prooph\EventStore\Snapshot\Snapshot
Résultat void