ldc-supportweb/app/Enums/Role.php

33 lines
595 B
PHP
Raw Normal View History

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnum;
/**
2021-07-23 11:04:09 +02:00
* @method static self developper()
* @method static self admin()
* @method static self client()
*/
class Role extends BaseEnum
{
protected static function values(): array
{
return [
2021-07-23 11:04:09 +02:00
'developper' => 0,
'admin' => 1,
'client' => 2
];
}
protected static function labels(): array
{
return [
2021-07-23 11:04:09 +02:00
'developper' => trans('Developpeur'),
'admin' => trans('Administrateur'),
'client' => trans('Client')
];
}
}