ldc-legaulois/app/Enums/ContactFormCivility.php
2021-03-02 14:58:59 +01:00

36 lines
637 B
PHP

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