public function hasAnnotation($name) { $res = AnnotationsParser::getAll($this); return !empty($res[$name]); }