ldc-com-app-bo/app/Enums/AppUserRolesEnum.php

24 lines
377 B
PHP
Raw Permalink Normal View History

2023-03-14 17:43:46 +01:00
<?php
namespace App\Enums;
2026-10-20 16:03:44 +02:00
use Uwil\LaravelCommon\Traits\Enums\BaseEnum;
2023-03-14 17:43:46 +01:00
enum AppUserRolesEnum: int
2023-03-14 17:43:46 +01:00
{
use BaseEnum;
case total = 1;
case user = 2;
2023-03-14 17:43:46 +01:00
2023-03-15 09:17:52 +01:00
/**
* Optionnal labels definition.
*
* @phpstan-ignore-next-line
2023-03-15 09:17:52 +01:00
*/
private const LABELS = [
self::total->name => 'Total',
self::user->name => 'Utilisateur',
];
2023-03-14 17:43:46 +01:00
}