ldc-supportweb/app/Enums/Role.php

42 lines
736 B
PHP
Raw Permalink Normal View History

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