ldc-supportweb/app/Enums/ProjectStatus.php
Jérémy Munsch d52edeb6bc
MacroPlanning functionnality
bump kwaadpepper/crud-policies
2022-05-04 17:34:56 +02:00

53 lines
1.2 KiB
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnum;
/**
* @method static self new()
* @method static self specification()
* @method static self validated()
* @method static self development()
* @method static self recipe()
* @method static self production()
* @method static self finished()
*/
final class ProjectStatus extends BaseEnum
{
/**
* Enum values
*
* @return array
*/
protected static function values(): array
{
return [
'new' => 0,
'specification' => 1,
'validated' => 2,
'development' => 3,
'recipe' => 4,
'production' => 5,
'finished' => 6
];
}
/**
* Enum labels
*
* @return array
*/
protected static function labels(): array
{
return [
'new' => trans('Nouveau'),
'specification' => trans('Spécifications'),
'validated' => trans('Validé'),
'development' => trans('En développement'),
'recipe' => trans('En recettage'),
'production' => trans('En production'),
'finished' => trans('Terminé')
];
}
}