public function end()
    {
        if (null === $this->ifPart) {
            throw new \RuntimeException('You must specify an if part.');
        }
        if (null === $this->thenPart) {
            throw new \RuntimeException('You must specify a then part.');
        }

        return $this->node;
    }
public function end()
    {
        if (null === $this->ifPart) {
            throw new \RuntimeException('You must specify an if part.');
        }
        if (null === $this->thenPart) {
            throw new \RuntimeException('You must specify a then part.');
        }

        return $this->node;
    }
public function end ( ) { if ( null === $ this -> ifPart ) { throw new \ RuntimeException ( 'You must specify an if part.' ) ; } if ( null === $ this -> thenPart ) { throw new \ RuntimeException ( 'You must specify a then part.' ) ; } return $ this -> node ; }
Returns the related node.

@return NodeDefinition|ArrayNodeDefinition|VariableNodeDefinition

@throws \RuntimeException
Returns the related node .