ldc-supportweb/app/Enums/LoadLevel.php
Jérémy Munsch f310cb9e2d
bump kwaadpepper/crud-policies to 0.1.18
bump kwaadpepper/enum to 2.1.1
2021-09-21 10:17:55 +02:00

35 lines
693 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* @method static self weak()
* @method static self stable()
* @method static self high()
* @method static self overload()
*/
class LoadLevel extends BaseEnumRoutable
{
protected static function values(): array
{
return [
'weak' => 0,
'stable' => 1,
'high' => 2,
'overload' => 3
];
}
protected static function labels(): array
{
return [
'weak' => trans('Faible'),
'stable' => trans('Stable'),
'high' => trans('Élevée'),
'overload' => trans('Surcharge')
];
}
}