Prooph\EventSourcing\AggregateRoot::aggregateId PHP Метод

aggregateId() абстрактный защищенный Метод

abstract protected aggregateId ( ) : string
Результат string representation of the unique identifier of the aggregate root
    protected abstract function aggregateId();

Usage Example

 /**
  * @param AggregateRoot $anAggregateRoot
  * @return string
  */
 public function extractAggregateId(AggregateRoot $anAggregateRoot)
 {
     return $anAggregateRoot->aggregateId();
 }