43 lines
1 KiB
PHP
43 lines
1 KiB
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Kwaadpepper\Enum\BaseEnum;
|
|
|
|
/**
|
|
* @method static self new()
|
|
* @method static self inprogress()
|
|
* @method static self waiting()
|
|
* @method static self processed()
|
|
* @method static self recette()
|
|
* @method static self production()
|
|
* @method static self archived()
|
|
*/
|
|
class TicketStatus extends BaseEnum
|
|
{
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'new' => 1,
|
|
'inprogress' => 2,
|
|
'waiting' => 3,
|
|
'processed' => 4,
|
|
'recette' => 5,
|
|
'production' => 6,
|
|
'archived' => 9,
|
|
];
|
|
}
|
|
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'new' => trans('Nouveau'),
|
|
'inprogress' => trans('En cours'),
|
|
'waiting' => trans('En attente'),
|
|
'processed' => trans('Traité'),
|
|
'recette' => trans('En recettage'),
|
|
'production' => trans('En production'),
|
|
'archived' => trans('Archivé'),
|
|
];
|
|
}
|
|
}
|