41 lines
758 B
PHP
41 lines
758 B
PHP
<?php
|
|
|
|
namespace App\Enums\Contact;
|
|
|
|
use Kwaadpepper\Enum\BaseEnum;
|
|
|
|
/**
|
|
* @method static self morning()
|
|
* @method static self afternoon()
|
|
* @method static self anytime()
|
|
*/
|
|
final class ContactTimeEnum extends BaseEnum
|
|
{
|
|
/**
|
|
* Enum values
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'morning' => 1,
|
|
'afternoon' => 2,
|
|
'anytime' => 3,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Enum labels
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'morning' => trans('Le matin'),
|
|
'afternoon' => trans('L\'après-midi'),
|
|
'anytime' => trans('À tout moment'),
|
|
];
|
|
}
|
|
}
|