PHP Class Prooph\EventStore\Snapshot\Adapter\InMemoryAdapter

Inheritance: implements Prooph\EventStore\Snapshot\Adapter\Adapter
Mostra file Open project: prooph/event-store

Public Methods

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

Method Details

get() public method

Get the aggregate root if it exists otherwise null
public get ( AggregateType $aggregateType, string $aggregateId ) : null | object
$aggregateType Prooph\EventStore\Aggregate\AggregateType
$aggregateId string
return null | object

save() public method

Save a snapshot
public save ( Snapshot $snapshot ) : void
$snapshot Prooph\EventStore\Snapshot\Snapshot
return void