<?php

namespace KupShop\ReclamationsSuppliersBundle\AdminRegister;

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

class ReclamationsSuppliersAdminRegister extends AdminRegister implements IAdminRegisterDynamic, IAdminRegisterStatic
{
    public function getDynamicMenu(): array
    {
        return [
            static::createMenuItem('stockMenu', [
                'name' => 'ReclamationsSuppliers',
                'title' => translate('ReclamationsSuppliers', 'ReclamationsSuppliers'),
                'left' => 's=menu.php&type=ReclamationsSuppliers',
                'right' => 's=list.php&type=ReclamationsSuppliers',
            ]),
        ];
    }

    public static function getPermissions(): array
    {
        return [
            static::createPermissions('ReclamationsSuppliers', [\Modules::RECLAMATIONS], ['RECLAMATIONS']),
        ];
    }
}
