ldc-gen-game-web/app/Enums/Users/RoleEnum.php

26 lines
452 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Enums\Users;
2023-08-21 10:22:07 +02:00
use App\Traits\Enums\BaseEnum;
2023-08-21 10:22:07 +02:00
enum RoleEnum: int
{
2023-08-21 10:22:07 +02:00
use BaseEnum;
case conceptor = 1;
case admin = 2;
case marketing = 3;
/**
2023-08-21 10:22:07 +02:00
* Optionnal labels definition
2024-01-31 09:03:18 +00:00
*
* @phpstan-ignore-next-line
*/
2023-08-21 10:22:07 +02:00
private const LABELS = [
self::conceptor->name => 'Concepteur',
self::admin->name => 'Administrator',
self::marketing->name => 'Marketing',
2023-08-21 10:22:07 +02:00
];
}