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

Breadcrumb

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

function PsrCachedReader::getPropertyAnnotation

Overrides Reader::getPropertyAnnotation

File

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

Class

PsrCachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

public function getPropertyAnnotation(ReflectionProperty $property, $annotationName) {
    foreach ($this->getPropertyAnnotations($property) as $annot) {
        if ($annot instanceof $annotationName) {
            return $annot;
        }
    }
    return null;
}
RSS feed
Powered by Drupal