public function getIndexMetadata($contextName)
    {
        if (!isset($this->indexMetadatas[$contextName])) {
            throw new \InvalidArgumentException(sprintf(
                'Context name "%s" not known, known contexts: "%s"',
                $contextName, implode('", "', array_keys($this->indexMetadatas))
            ));
        }

        return $this->indexMetadatas[$contextName];
    }
public function getIndexMetadata($contextName)
    {
        if (!isset($this->indexMetadatas[$contextName])) {
            throw new \InvalidArgumentException(sprintf(
                'Context name "%s" not known, known contexts: "%s"',
                $contextName, implode('", "', array_keys($this->indexMetadatas))
            ));
        }

        return $this->indexMetadatas[$contextName];
    }
public function getIndexMetadata ( $ contextName ) { if ( ! isset ( $ this -> indexMetadatas [ $ contextName ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Context name "%s" not known, known contexts: "%s"' , $ contextName , implode ( '", "' , array_keys ( $ this -> indexMetadatas ) ) ) ) ; } return $ this -> indexMetadatas [ $ contextName ] ; }
Return the indexmetadata for the given context.

@param string $contextName

@return IndexMetadata
Return the indexmetadata for the given context .