original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: Return the indexmetadata for the given context.
  
  @param string $contextName
  
  @return IndexMetadata
docstring_tokens: Return the indexmetadata for the given context .