ldc-supportweb/app/Enums/TicketStatus.php
2021-04-21 11:24:29 +02:00

37 lines
824 B
PHP

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