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