ldc-le-gaulois-pro/app/Enums/Contact/ContactTimeEnum.php
Jérémy Munsch 3a0d4e9d20
PHPstan OK
2024-02-05 09:33:08 +01:00

25 lines
466 B
PHP

<?php
namespace App\Enums\Contact;
use App\Traits\Enums\BaseEnum;
enum ContactTimeEnum: int
{
use BaseEnum;
case morning = 1;
case afternoon = 2;
case anytime = 3;
/**
* Optionnal labels definition.
*
* @phpstan-ignore-next-line
*/
private const LABELS = [
self::morning->name => 'Le matin',
self::afternoon->name => 'L\'après-midi',
self::anytime->name => 'À tout moment',
];
}