ldc-legaulois/app/Enums/ContactFormCivility.php

34 lines
562 B
PHP
Raw Normal View History

<?php
namespace App\Enums;
2021-09-03 18:36:44 +02:00
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* @method static self m()
* @method static self mme()
*/
2021-09-03 18:36:44 +02:00
final class ContactFormCivility extends BaseEnumRoutable
{
protected static function values(): array
{
return [
'm' => 1,
'mme' => 2
];
}
protected static function labels(): array
{
return [
'mme' => __('Mme'),
'm' => __('M')
];
}
public function __toString(): string
{
2021-03-20 14:38:15 +01:00
return (string)$this->label;
}
}