public static function createMenu(array $menu): MenuInterface
    {
        $menuInstance = new Menu();
        self::addToMenu($menuInstance, $menu);

        return $menuInstance;
    }
public static function createMenu(array $menu): MenuInterface
    {
        $menuInstance = new Menu();
        self::addToMenu($menuInstance, $menu);

        return $menuInstance;
    }
public static function createMenu ( array $ menu ) : MenuInterface { $ menuInstance = new Menu ( ) ; self :: addToMenu ( $ menuInstance , $ menu ) ; return $ menuInstance ; }
Constructs a menu instance by using the provided menu array

@param mixed[] $menu Menu configuration
@return \Menu\MenuBuilder\MenuInterface
Constructs a menu instance by using the provided menu array