public function getAnnotations() { return AnnotationsParser::getAll($this); }
/** * @param IEventListener $service * @param Method $method */ public function __construct($service, Method $method) { $this->service = $service; $this->method = $method; $this->annotations = $method->getAnnotations(); }