public function getClassAnnotation($className, $annotationClassName)
    {
        if (!$this->initialized) {
            $this->initialize();
        }
        $annotations = $this->getClassAnnotations($className, $annotationClassName);

        return $annotations === [] ? null : current($annotations);
    }
public function getClassAnnotation($className, $annotationClassName)
    {
        if (!$this->initialized) {
            $this->initialize();
        }
        $annotations = $this->getClassAnnotations($className, $annotationClassName);

        return $annotations === [] ? null : current($annotations);
    }
public function getClassAnnotation ( $ className , $ annotationClassName ) { if ( ! $ this -> initialized ) { $ this -> initialize ( ) ; } $ annotations = $ this -> getClassAnnotations ( $ className , $ annotationClassName ) ; return $ annotations === [ ] ? null : current ( $ annotations ) ; }
Returns the specified class annotation or NULL.

If multiple annotations are set on the target you will
get one (random) instance of them.

@param string $className Name of the class
@param string $annotationClassName Annotation to filter for
@return object
Returns the specified class annotation or NULL .