ldc-supportweb/app/Enums/TicketStatus.php

44 lines
1 KiB
PHP
Raw Normal View History

2021-04-18 20:31:07 +02:00
<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnum;
/**
* @method static self new()
* @method static self inprogress()
2021-04-21 15:30:46 +02:00
* @method static self waiting()
2021-04-18 20:31:07 +02:00
* @method static self processed()
2021-04-21 13:34:23 +02:00
* @method static self recette()
2021-04-21 11:24:29 +02:00
* @method static self production()
2021-04-21 13:34:23 +02:00
* @method static self archived()
2021-04-18 20:31:07 +02:00
*/
class TicketStatus extends BaseEnum
{
protected static function values(): array
{
return [
'new' => 1,
'inprogress' => 2,
2021-04-21 15:30:46 +02:00
'waiting' => 3,
'processed' => 4,
'recette' => 5,
'production' => 6,
2021-04-21 13:34:23 +02:00
'archived' => 9,
2021-04-18 20:31:07 +02:00
];
}
protected static function labels(): array
{
return [
'new' => trans('Nouveau'),
'inprogress' => trans('En cours'),
2021-04-21 15:30:46 +02:00
'waiting' => trans('En attente'),
2021-04-18 20:31:07 +02:00
'processed' => trans('Traité'),
2021-04-21 13:34:23 +02:00
'recette' => trans('En recettage'),
2021-04-21 11:24:29 +02:00
'production' => trans('En production'),
2021-04-21 13:34:23 +02:00
'archived' => trans('Archivé'),
2021-04-18 20:31:07 +02:00
];
}
}