48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Enums\Planning;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* Décrit à quel moment de la journée appartient la cellule
|
|
*
|
|
* @method static self matin1()
|
|
* @method static self matin2()
|
|
* @method static self matin3()
|
|
* @method static self matin4()
|
|
* @method static self apresmidi1()
|
|
* @method static self apresmidi2()
|
|
* @method static self apresmidi3()
|
|
* @method static self apresmidi4()
|
|
*/
|
|
class TableRow extends BaseEnumRoutable
|
|
{
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'matin1' => 1,
|
|
'matin2' => 2,
|
|
'matin3' => 3,
|
|
'matin4' => 4,
|
|
'apresmidi1' => 5,
|
|
'apresmidi2' => 6,
|
|
'apresmidi3' => 7,
|
|
'apresmidi4' => 8,
|
|
];
|
|
}
|
|
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'matin1' => trans('Matin 1'),
|
|
'matin2' => trans('Matin 2'),
|
|
'matin3' => trans('Matin 3'),
|
|
'matin4' => trans('Matin 4'),
|
|
'apresmidi1' => trans('Après-midi 1'),
|
|
'apresmidi2' => trans('Après-midi 2'),
|
|
'apresmidi3' => trans('Après-midi 3'),
|
|
'apresmidi4' => trans('Après-midi 4'),
|
|
];
|
|
}
|
|
}
|