original_string: private function getClass($key)
      {
          if (!array_key_exists($key, $this->config['classes'])) {
              throw new \InvalidArgumentException(sprintf('Undefined resource class "%s".', $key));
          }
  
          return $this->config['classes'][$key];
      }
code: private function getClass($key)
      {
          if (!array_key_exists($key, $this->config['classes'])) {
              throw new \InvalidArgumentException(sprintf('Undefined resource class "%s".', $key));
          }
  
          return $this->config['classes'][$key];
      }
code_tokens: private function getClass ( $ key ) { if ( ! array_key_exists ( $ key , $ this -> config [ 'classes' ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Undefined resource class "%s".' , $ key ) ) ; } return $ this -> config [ 'classes' ] [ $ key ] ; }
docstring: Returns the class for the given key.
  
  @param string $key
  
  @return string
docstring_tokens: Returns the class for the given key .