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

Breadcrumb

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

function PsrCachedReader::getPropertyAnnotations

Overrides Reader::getPropertyAnnotations

1 call to PsrCachedReader::getPropertyAnnotations()
PsrCachedReader::getPropertyAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PsrCachedReader.php
Gets a property annotation.

File

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

Class

PsrCachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

public function getPropertyAnnotations(ReflectionProperty $property) {
    $class = $property->getDeclaringClass();
    $cacheKey = $class->getName() . '$' . $property->getName();
    if (isset($this->loadedAnnotations[$cacheKey])) {
        return $this->loadedAnnotations[$cacheKey];
    }
    $annots = $this->fetchFromCache($cacheKey, $class, 'getPropertyAnnotations', $property);
    return $this->loadedAnnotations[$cacheKey] = $annots;
}
RSS feed
Powered by Drupal