function AnnotationReader::getMethodAnnotations
Overrides Reader::getMethodAnnotations
1 call to AnnotationReader::getMethodAnnotations()
- AnnotationReader::getMethodAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Gets a method annotation.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php, line 203
Class
- AnnotationReader
- A reader for docblock annotations.
Namespace
Doctrine\Common\AnnotationsCode
public function getMethodAnnotations(ReflectionMethod $method) {
$class = $method->getDeclaringClass();
$context = 'method ' . $class->getName() . '::' . $method->getName() . '()';
$this->parser
->setTarget(Target::TARGET_METHOD);
$this->parser
->setImports($this->getMethodImports($method));
$this->parser
->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
$this->parser
->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
return $this->parser
->parse($method->getDocComment(), $context);
}