/** * @param AnnotatedSaga $saga */ public function __construct(AnnotatedSaga $saga) { $reader = new \Doctrine\Common\Annotations\AnnotationReader(); parent::__construct(get_class($saga), $reader, [AnnotationType::ANNOTATED_METHOD]); }
/** * @param EventHandler $handler */ public function __construct(EventHandler $handler) { $reader = new \Doctrine\Common\Annotations\AnnotationReader(); parent::__construct(get_class($handler), $reader, [AnnotationType::ANNOTATED_METHOD]); }
/** * @param AnnotatedAggregateRoot $aggregateRoot */ public function __construct(AnnotatedAggregateRoot $aggregateRoot) { $reader = new \Doctrine\Common\Annotations\AnnotationReader(); parent::__construct(get_class($aggregateRoot), $reader, [AnnotationType::ANNOTATED_PROPERTY]); }