<?php

namespace KupShop\ShoppingListBundle\AdminRegister;

use KupShop\AdminBundle\AdminRegister\AdminRegister;
use KupShop\AdminBundle\AdminRegister\IAdminRegisterDynamic;
use KupShop\AdminBundle\AdminRegister\IAdminRegisterStatic;

class ShoppingListAdminRegister extends AdminRegister implements IAdminRegisterStatic, IAdminRegisterDynamic
{
    public function getDynamicMenu(): array
    {
        return [
            static::createMenuItem('ordersMenu', [
                'name' => 'Shoppinglist',
                'left' => 's=menu.php&type=ShoppingList',
                'right' => 's=list.php&type=ShoppingList',
            ]),
        ];
    }

    public static function getPermissions(): array
    {
        return [
            static::createPermissions('Shoppinglist', [\Modules::SHOPPING_LIST], ['SHOPPINGLIST']),
        ];
    }
}
