<?php

namespace ModulesGarden\HostingQuotaNotifications\App\Libs\Groups;

use ModulesGarden\HostingQuotaNotifications\App\Helper\Lang\Lang;

/**
 * Description of Constants
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class Constants
{

    CONST UNITS = [
        'MB'         => self::MB,
        'GB'         => self::GB,
        'TB'         => self::TB,
        'Percentage' => self::PERCENTAGE,
    ];

    CONST SUM = 'sum';

    CONST MB = 'MB';
    CONST GB = 'GB';
    CONST TB = 'TB';
    CONST PERCENTAGE = 'Percentage';

    CONST TYPES = [
        'fixed'  => self::FIXED,
        'tiered' => self::TIERED,
    ];

    CONST FIXED = 'fixed';
    CONST TIERED = 'tiered';

    CONST ACTIONS = [
        'none'      => 'None',
        'terminate' => 'Auto Terminate',
        'suspend'   => 'Auto Suspend',
    ];

    public static function getTranslatedTypes()
    {
        return [
            'fixed'  => Lang::getAbsoulteLang('groups', self::FIXED),
            'tiered' => Lang::getAbsoulteLang('groups', self::TIERED),
        ];
    }

}
