Create get role fct

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-12-02 16:12:48 +01:00
1 parent 238127bc16
commit 897e92d8f0
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Services;
class GetRole
{
public static function getRole($role)
{
return match ($role) {
1 => "Président",
2 => "Gérant",
3 => "Bénévole",
default => "Utilisateur",
};
}
}