refactor: move backend in apps/backend
This commit is contained in:
1 parent
cf529278bd
commit
e2b471312c
178 files changed
+210
-193
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace apps\backend\app\Services;
|
||||
|
||||
class GetRole
|
||||
{
|
||||
public static function getRole($role)
|
||||
{
|
||||
$role = (int)$role;
|
||||
return match ($role) {
|
||||
1 => "Président",
|
||||
2 => "Gérant",
|
||||
3 => "Bénévole",
|
||||
default => "Utilisateur",
|
||||
};
|
||||
}
|
||||
|
||||
public static function GetAllRoles() {
|
||||
return [
|
||||
"Président",
|
||||
"Gérant",
|
||||
"Bénévole"
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user