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;
    }
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;
    }
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 ; }
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
Returns the class name of the node definition .