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
Exemple #1
0
 /**
  * @param AggregateType $aggregateType
  * @param string $aggregateId
  * @return Snapshot|null
  */
 public function get(AggregateType $aggregateType, $aggregateId)
 {
     return $this->adapter->get($aggregateType, $aggregateId);
 }