protected function instantiateNode()
    {
        if (null === $this->values) {
            throw new \RuntimeException('You must call ->values() on enum nodes.');
        }

        return new EnumNode($this->name, $this->parent, $this->values, $this->pathSeparator);
    }
protected function instantiateNode()
    {
        if (null === $this->values) {
            throw new \RuntimeException('You must call ->values() on enum nodes.');
        }

        return new EnumNode($this->name, $this->parent, $this->values, $this->pathSeparator);
    }
protected function instantiateNode ( ) { if ( null === $ this -> values ) { throw new \ RuntimeException ( 'You must call ->values() on enum nodes.' ) ; } return new EnumNode ( $ this -> name , $ this -> parent , $ this -> values , $ this -> pathSeparator ) ; }
Instantiate a Node.

@return EnumNode The node

@throws \RuntimeException
Instantiate a Node .