src/Menu/MenuBuilder.php
public function createMenu(Menu $menu, $menuIterator, $startDepth)
    {
        foreach ($menuIterator as $childNode) {
            $this->addNodeToMenu($menu, $childNode, $startDepth);
        }

        return $menu;
    }
public function createMenu(Menu $menu, $menuIterator, $startDepth)
    {
        foreach ($menuIterator as $childNode) {
            $this->addNodeToMenu($menu, $childNode, $startDepth);
        }

        return $menu;
    }
public function createMenu ( Menu $ menu , $ menuIterator , $ startDepth ) { foreach ( $ menuIterator as $ childNode ) { $ this -> addNodeToMenu ( $ menu , $ childNode , $ startDepth ) ; } return $ menu ; }
Creates a full menu based on the starting point given.

@param Menu $menu
@param array $menuIterator
@param int $startDepth

@return Menu
Creates a full menu based on the starting point given .