44 lines
810 B
PHP
44 lines
810 B
PHP
<?php
|
|
|
|
namespace App\Enums\Documents;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* This defines a data type.
|
|
*
|
|
* @method static self fr()
|
|
* @method static self en()
|
|
* @method static self de()
|
|
* @method static self nl()
|
|
*/
|
|
final class LangEnum extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* enum values
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'fr' => 1,
|
|
'en' => 2,
|
|
'de' => 3,
|
|
'nl' => 4,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* enum labels
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'fr' => 'Français (FR)',
|
|
'en' => 'Anglais (EN)',
|
|
'de' => 'Allemand (DE)',
|
|
'nl' => 'Néerlandais (NL)',
|
|
];
|
|
}
|
|
}
|