- bump kwaadpepper/crud-policies - npm i vue-select moment --save-dev - Add Planning components - csrf_token to axios - Add Model WeekendPlanning - Add Enums CellModel, CellType, TableRow
36 lines
808 B
PHP
36 lines
808 B
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 apresmidi1()
|
|
* @method static self apresmidi2()
|
|
*/
|
|
class TableRow extends BaseEnumRoutable
|
|
{
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'matin1' => 1,
|
|
'matin2' => 2,
|
|
'apresmidi1' => 3,
|
|
'apresmidi2' => 4,
|
|
];
|
|
}
|
|
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'matin1' => trans('Matin 1'),
|
|
'matin2' => trans('Matin 2'),
|
|
'apresmidi1' => trans('Après-midi 1'),
|
|
'apresmidi2' => trans('Après-midi 2')
|
|
];
|
|
}
|
|
}
|