public function getClassMetadata()
    {
        $class = $this->class;
        if ($this->classMetadata === null) {
            $classMetadata = $this->metadata->loadMetadataForClass($class);
            $this->classMetadata = $classMetadata;
        }

        return $this->classMetadata;
    }
public function getClassMetadata()
    {
        $class = $this->class;
        if ($this->classMetadata === null) {
            $classMetadata = $this->metadata->loadMetadataForClass($class);
            $this->classMetadata = $classMetadata;
        }

        return $this->classMetadata;
    }
public function getClassMetadata ( ) { $ class = $ this -> class ; if ( $ this -> classMetadata === null ) { $ classMetadata = $ this -> metadata -> loadMetadataForClass ( $ class ) ; $ this -> classMetadata = $ classMetadata ; } return $ this -> classMetadata ; }
Gets the metadata instance.

@throws \Bolt\Exception\StorageException

@return ClassMetadata $classMetadata
Gets the metadata instance .