Get annotations for property
\ReflectionProperty $property:
array
Overrides Reader::getPropertyAnnotations
public function getPropertyAnnotations(\ReflectionProperty $property) {
$class = $property
->getDeclaringClass();
$cacheKey = $class
->getName() . '$' . $property
->getName();
if (isset($this->loadedAnnotations[$cacheKey])) {
return $this->loadedAnnotations[$cacheKey];
}
if (false === ($annots = $this
->fetchFromCache($cacheKey, $class))) {
$annots = $this->delegate
->getPropertyAnnotations($property);
$this
->saveToCache($cacheKey, $annots);
}
return $this->loadedAnnotations[$cacheKey] = $annots;
}