function Reader::getMethodAnnotation
Gets a method annotation.
@template T
Parameters
ReflectionMethod $method The ReflectionMethod to read the annotations from.:
class-string<T> $annotationName The name of the annotation.:
Return value
T|null The Annotation or NULL, if the requested annotation does not exist.
4 methods override Reader::getMethodAnnotation()
- AnnotationReader::getMethodAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Gets a method annotation.
- IndexedReader::getMethodAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ IndexedReader.php - Gets a method annotation.
- PsrCachedReader::getMethodAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php - Gets a method annotation.
- SimpleAnnotationReader::getMethodAnnotation in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ SimpleAnnotationReader.php - Gets a method annotation.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ Reader.php, line 57
Class
- Reader
- Interface for annotation readers.
Namespace
Doctrine\Common\AnnotationsCode
public function getMethodAnnotation(ReflectionMethod $method, $annotationName);