ldc-supportweb/app/Enums/TicketStatus.php

41 lines
934 B
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()
* @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,
'processed' => 3,
2021-04-21 13:34:23 +02:00
'recette' => 4,
'production' => 5,
'archived' => 9,
2021-04-18 20:31:07 +02:00
];
}
protected static function labels(): array
{
return [
'new' => trans('Nouveau'),
'inprogress' => trans('En cours'),
'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
];
}
}