public function getClass($class, $refresh = false)
    {
        $reflector = $this->getClassReflection($class);
        $cacheKey = $reflector->getName();
        if (!$refresh && $this->cacheExists($cacheKey)) {
            return $this->getFromCache($cacheKey);
        }
        /** @var array|null $annotations */
        $annotations = $this->reader->getClassAnnotations($reflector);
        $annotations = is_array($annotations) ? $annotations : [];
        $this->setToCache($cacheKey, $annotations);
        return $annotations;
    }
public function getClass($class, $refresh = false)
    {
        $reflector = $this->getClassReflection($class);
        $cacheKey = $reflector->getName();
        if (!$refresh && $this->cacheExists($cacheKey)) {
            return $this->getFromCache($cacheKey);
        }
        /** @var array|null $annotations */
        $annotations = $this->reader->getClassAnnotations($reflector);
        $annotations = is_array($annotations) ? $annotations : [];
        $this->setToCache($cacheKey, $annotations);
        return $annotations;
    }
public function getClass ( $ class , $ refresh = false ) { $ reflector = $ this -> getClassReflection ( $ class ) ; $ cacheKey = $ reflector -> getName ( ) ; if ( ! $ refresh && $ this -> cacheExists ( $ cacheKey ) ) { return $ this -> getFromCache ( $ cacheKey ) ; } /** @var array|null $annotations */ $ annotations = $ this -> reader -> getClassAnnotations ( $ reflector ) ; $ annotations = is_array ( $ annotations ) ? $ annotations : [ ] ; $ this -> setToCache ( $ cacheKey , $ annotations ) ; return $ annotations ; }
Get all annotations for class
@param string|object $class
@param bool          $refresh
@return array
Get all annotations for class