33 lines
588 B
PHP
33 lines
588 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Enums;
|
||
|
|
|
||
|
|
use Kwaadpepper\Enum\BaseEnum;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @method static self france()
|
||
|
|
* @method static self belgique()
|
||
|
|
* @method static self luxembourg()
|
||
|
|
*/
|
||
|
|
|
||
|
|
class Countries extends BaseEnum
|
||
|
|
{
|
||
|
|
protected static function values(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'france' => 250,
|
||
|
|
'belgique' => 56,
|
||
|
|
'luxembourg' => 442,
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
protected static function labels(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'france' => 'France',
|
||
|
|
'belgique' => 'Belgique',
|
||
|
|
'luxembourg' => 'Luxembourg',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|