public function getNode($forceRootNode = false)
    {
        if ($forceRootNode) {
            $this->parent = null;
        }

        if (null !== $this->normalization) {
            $this->normalization->before = ExprBuilder::buildExpressions($this->normalization->before);
        }

        if (null !== $this->validation) {
            $this->validation->rules = ExprBuilder::buildExpressions($this->validation->rules);
        }

        $node = $this->createNode();
        $node->setAttributes($this->attributes);

        return $node;
    }
public function getNode($forceRootNode = false)
    {
        if ($forceRootNode) {
            $this->parent = null;
        }

        if (null !== $this->normalization) {
            $this->normalization->before = ExprBuilder::buildExpressions($this->normalization->before);
        }

        if (null !== $this->validation) {
            $this->validation->rules = ExprBuilder::buildExpressions($this->validation->rules);
        }

        $node = $this->createNode();
        $node->setAttributes($this->attributes);

        return $node;
    }
public function getNode ( $ forceRootNode = false ) { if ( $ forceRootNode ) { $ this -> parent = null ; } if ( null !== $ this -> normalization ) { $ this -> normalization -> before = ExprBuilder :: buildExpressions ( $ this -> normalization -> before ) ; } if ( null !== $ this -> validation ) { $ this -> validation -> rules = ExprBuilder :: buildExpressions ( $ this -> validation -> rules ) ; } $ node = $ this -> createNode ( ) ; $ node -> setAttributes ( $ this -> attributes ) ; return $ node ; }
Creates the node.

@param bool $forceRootNode Whether to force this node as the root node

@return NodeInterface
Creates the node .