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