public function addSubnode(\Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $node)
    {
        if ($node !== $this) {
            $this->subnodes->add($node);
        }

        return $this;
    }
public function addSubnode(\Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $node)
    {
        if ($node !== $this) {
            $this->subnodes->add($node);
        }

        return $this;
    }
public function addSubnode ( \ Elcodi \ Component \ Menu \ Entity \ Menu \ Interfaces \ NodeInterface $ node ) { if ( $ node !== $ this ) { $ this -> subnodes -> add ( $ node ) ; } return $ this ; }
Add subnode.

@param \Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $node Node

@return $this Self object
Add subnode .