public function getClassAnnotation($class)
    {
        $reflClass = new \ReflectionClass($class);
        $mappedDocumentClass = static::ANNOTATION_CLASS_CLASS;

        foreach ($this->annotationReader->getClassAnnotations($reflClass) as $annotation) {
            if ($annotation instanceof $mappedDocumentClass) {
                return $annotation;
            }
        }

        return null;
    }
public function getClassAnnotation($class)
    {
        $reflClass = new \ReflectionClass($class);
        $mappedDocumentClass = static::ANNOTATION_CLASS_CLASS;

        foreach ($this->annotationReader->getClassAnnotations($reflClass) as $annotation) {
            if ($annotation instanceof $mappedDocumentClass) {
                return $annotation;
            }
        }

        return null;
    }
public function getClassAnnotation ( $ class ) { $ reflClass = new \ ReflectionClass ( $ class ) ; $ mappedDocumentClass = static :: ANNOTATION_CLASS_CLASS ; foreach ( $ this -> annotationReader -> getClassAnnotations ( $ reflClass ) as $ annotation ) { if ( $ annotation instanceof $ mappedDocumentClass ) { return $ annotation ; } } return null ; }
Returns the annotation of a class.

@param  string   $class
@return \Doctrine\ODM\OrientDB\Mapper\Annotations\Document
Returns the annotation of a class .