src/Model/Page.php
public function setMenuItem(MenuItemInterface $menuItem)
    {
        $menuItem->setPage($this);
        $this->menuItem = $menuItem;

        return $this;
    }
public function setMenuItem(MenuItemInterface $menuItem)
    {
        $menuItem->setPage($this);
        $this->menuItem = $menuItem;

        return $this;
    }
public function setMenuItem ( MenuItemInterface $ menuItem ) { $ menuItem -> setPage ( $ this ) ; $ this -> menuItem = $ menuItem ; return $ this ; }
Add menuItem.

@param MenuItemInterface $menuItem

@return $this
Add menuItem .