original_string: protected function getNodeClass($type)
      {
          $type = strtolower($type);
  
          if (!isset($this->nodeMapping[$type])) {
              throw new \RuntimeException(sprintf('The node type "%s" is not registered.', $type));
          }
  
          $class = $this->nodeMapping[$type];
  
          if (!class_exists($class)) {
              throw new \RuntimeException(sprintf('The node class "%s" does not exist.', $class));
          }
  
          return $class;
      }
code: protected function getNodeClass($type)
      {
          $type = strtolower($type);
  
          if (!isset($this->nodeMapping[$type])) {
              throw new \RuntimeException(sprintf('The node type "%s" is not registered.', $type));
          }
  
          $class = $this->nodeMapping[$type];
  
          if (!class_exists($class)) {
              throw new \RuntimeException(sprintf('The node class "%s" does not exist.', $class));
          }
  
          return $class;
      }
code_tokens: protected function getNodeClass ( $ type ) { $ type = strtolower ( $ type ) ; if ( ! isset ( $ this -> nodeMapping [ $ type ] ) ) { throw new \ RuntimeException ( sprintf ( 'The node type "%s" is not registered.' , $ type ) ) ; } $ class = $ this -> nodeMapping [ $ type ] ; if ( ! class_exists ( $ class ) ) { throw new \ RuntimeException ( sprintf ( 'The node class "%s" does not exist.' , $ class ) ) ; } return $ class ; }
docstring: Returns the class name of the node definition.
  
  @param string $type The node type
  
  @return string The node definition class name
  
  @throws \RuntimeException When the node type is not registered
  @throws \RuntimeException When the node class is not found
docstring_tokens: Returns the class name of the node definition .