ldc-com-app-bo/app/Enums/UserRolesEnum.php
Vincent BRIDIER 777d3e0e86 Multiple fix
2023-07-13 08:34:54 +00:00

38 lines
663 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* This defines a data type.
*
* @method static self admin() admin role
* @method static self client() client role
*/
final class UserRolesEnum extends BaseEnumRoutable
{
/**
* enum values
* @return array
*/
protected static function values(): array
{
return [
'admin' => 1,
'client' => 2,
];
}
/**
* enum labels
* @return array
*/
protected static function labels(): array
{
return [
'admin' => 'Administrateur',
'client' => 'Client',
];
}
}