PHP Class Prooph\EventStore\Snapshot\SnapshotStore

ファイルを表示 Open project: prooph/event-store Class Usage Examples

Protected Properties

Property Type Description
$adapter Prooph\EventStore\Snapshot\Adapter\Adapter

Public Methods

Method 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 method

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

get() public method

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

save() public method

Save aggregate root
public save ( Snapshot $snapshot ) : void
$snapshot Snapshot
return void

Property Details

$adapter protected_oe property

protected Adapter,Prooph\EventStore\Snapshot\Adapter $adapter
return Prooph\EventStore\Snapshot\Adapter\Adapter