47 lines
1,012 B
PHP
47 lines
1,012 B
PHP
<?php
|
|
|
|
namespace App\Enums\MacroSchedule;
|
|
|
|
use Kwaadpepper\Enum\BaseEnum;
|
|
|
|
/**
|
|
* @method static self conception()
|
|
* @method static self development()
|
|
* @method static self recipe()
|
|
* @method static self production()
|
|
* @method static self meeting()
|
|
*/
|
|
final class Activity extends BaseEnum
|
|
{
|
|
/**
|
|
* Enum values
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'conception' => 0,
|
|
'development' => 1,
|
|
'recipe' => 2,
|
|
'production' => 3,
|
|
'meeting' => 4
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Enum labels
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'conception' => trans('Conception / Rédaction'),
|
|
'development' => trans('Développement'),
|
|
'recipe' => trans('Mise en recette'),
|
|
'production' => trans('Mise en production'),
|
|
'meeting' => trans('Réunion')
|
|
];
|
|
}
|
|
}
|