ldc-legaulois/app/Enums/ContactFormCivility.php
2021-05-12 18:34:42 +02:00

36 lines
635 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnum;
/**
* @method static self mlle()
* @method static self mme()
* @method static self m()
*/
final class ContactFormCivility extends BaseEnum
{
protected static function values(): array
{
return [
'mlle' => 1,
'mme' => 2,
'm' => 3
];
}
protected static function labels(): array
{
return [
'mlle' => __('Mlle'),
'mme' => __('Mme'),
'm' => __('M')
];
}
public function __toString(): string
{
return (string)$this->label;
}
}