protected function generateSame(
        string $same,
        ?NodeInterface $parent
    ): NodeInterface{
        $node = new SameNode($this, $parent, null);

        $node->setSame($same);

        return $node;
    }
protected function generateSame(
        string $same,
        ?NodeInterface $parent
    ): NodeInterface{
        $node = new SameNode($this, $parent, null);

        $node->setSame($same);

        return $node;
    }
protected function generateSame ( string $ same , ? NodeInterface $ parent ) : NodeInterface { $ node = new SameNode ( $ this , $ parent , null ) ; $ node -> setSame ( $ same ) ; return $ node ; }
Generate same node.

@param string             $same
@param NodeInterface|null $parent

@return NodeInterface
Generate same node .