extractAggregateId() публичный Метод

public extractAggregateId ( object $eventSourcedAggregateRoot ) : string
$eventSourcedAggregateRoot object
Результат string
 /**
  * @test
  * @expectedException \Prooph\EventStore\Aggregate\Exception\AggregateTranslationFailedException
  */
 public function it_throws_exception_if_identifier_method_does_not_exist()
 {
     $ar = $this->prophesize(CustomAggregateRootContract::class);
     $translator = new ConfigurableAggregateTranslator('unknownMethodName');
     $translator->extractAggregateId($ar->reveal());
 }