35 lines
693 B
PHP
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')
|
|
];
|
|
}
|
|
}
|