38 lines
654 B
PHP
38 lines
654 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* This defines a data type.
|
|
*
|
|
* @method static self total() total role
|
|
* @method static self user() user role
|
|
*/
|
|
final class AppUserRolesEnum extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* enum values
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'total' => 1,
|
|
'user' => 2,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* enum labels
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'total' => 'Total',
|
|
'user' => 'Utilisateur',
|
|
];
|
|
}
|
|
}
|