Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PsrCachedReader.php

function PsrCachedReader::getMethodAnnotation

Overrides Reader::getMethodAnnotation

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PsrCachedReader.php, line 128

Class

PsrCachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

public function getMethodAnnotation(ReflectionMethod $method, $annotationName) {
    foreach ($this->getMethodAnnotations($method) as $annot) {
        if ($annot instanceof $annotationName) {
            return $annot;
        }
    }
    return null;
}
RSS feed
Powered by Drupal