src/Factory/ClassMetadataFactory.php
public function getMetadataForClass($className)
    {
        if (!class_exists($className)) {
            throw new \Exception("Class $className does not exist!");
        }
        if (isset($this->loadedMetadatas[$className])) {
            return $this->loadedMetadatas[$className];
        }

        return $this->loadedMetadatas[$className] = $this->loadMetadataForClass($className, $this->annotationReader);
    }
public function getMetadataForClass($className)
    {
        if (!class_exists($className)) {
            throw new \Exception("Class $className does not exist!");
        }
        if (isset($this->loadedMetadatas[$className])) {
            return $this->loadedMetadatas[$className];
        }

        return $this->loadedMetadatas[$className] = $this->loadMetadataForClass($className, $this->annotationReader);
    }
public function getMetadataForClass ( $ className ) { if ( ! class_exists ( $ className ) ) { throw new \ Exception ( "Class $className does not exist!" ) ; } if ( isset ( $ this -> loadedMetadatas [ $ className ] ) ) { return $ this -> loadedMetadatas [ $ className ] ; } return $ this -> loadedMetadatas [ $ className ] = $ this -> loadMetadataForClass ( $ className , $ this -> annotationReader ) ; }
Allow to get class metadata for specified class

@param   string          $className          Name of the class to get metadatas

@return  ClassMetadata   Class metadatas
Allow to get class metadata for specified class