public function getClassExact($class, $annotationClass, $refresh = false)
    {
        $annotations = $this->getClass($class, $refresh);
        foreach ($annotations as $annotation) {
            if ($annotation instanceof $annotationClass) {
                return $annotation;
            }
        }
        return null;
    }
public function getClassExact($class, $annotationClass, $refresh = false)
    {
        $annotations = $this->getClass($class, $refresh);
        foreach ($annotations as $annotation) {
            if ($annotation instanceof $annotationClass) {
                return $annotation;
            }
        }
        return null;
    }
public function getClassExact ( $ class , $ annotationClass , $ refresh = false ) { $ annotations = $ this -> getClass ( $ class , $ refresh ) ; foreach ( $ annotations as $ annotation ) { if ( $ annotation instanceof $ annotationClass ) { return $ annotation ; } } return null ; }
Get class annotation by its class|interface name
@param string|object $class
@param string|object $annotationClass
@param bool          $refresh
@return object|null
Get class annotation by its class|interface name