Prooph\EventStore\Snapshot\Adapter\Adapter::get PHP Method

get() public method

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

Usage Example

示例#1
0
 /**
  * @param AggregateType $aggregateType
  * @param string $aggregateId
  * @return Snapshot|null
  */
 public function get(AggregateType $aggregateType, $aggregateId)
 {
     return $this->adapter->get($aggregateType, $aggregateId);
 }