ldc-supportweb/app/Enums/LoadLevel.php

45 lines
818 B
PHP
Raw Normal View History

2021-08-01 13:44:08 +02:00
<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnumRoutable;
2021-08-01 13:44:08 +02:00
/**
* @method static self weak()
* @method static self stable()
* @method static self high()
* @method static self overload()
*/
class LoadLevel extends BaseEnumRoutable
2021-08-01 13:44:08 +02:00
{
2022-08-11 09:32:24 +02:00
/**
* Enum values
*
* @return array
*/
2021-08-01 13:44:08 +02:00
protected static function values(): array
{
return [
'weak' => 0,
'stable' => 1,
'high' => 2,
'overload' => 3
];
}
2022-08-11 09:32:24 +02:00
/**
* Enum labels
*
* @return array
*/
2021-08-01 13:44:08 +02:00
protected static function labels(): array
{
return [
'weak' => trans('Faible'),
'stable' => trans('Stable'),
'high' => trans('Élevée'),
'overload' => trans('Surcharge')
];
}
}