/** * @param AnnotatedAggregateRoot $aggregateRoot */ public function __construct(AnnotatedAggregateRoot $aggregateRoot) { parent::__construct(sprintf(static::$messageTemplate, get_class($aggregateRoot))); }
/** * @param AnnotatedSaga $saga */ public function __construct(AnnotatedSaga $saga) { parent::__construct(sprintf(static::$messageTemplate, get_class($saga))); }