Total Complexity | 1 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | enum UserRole: string |
||
8 | { |
||
9 | use EnumToArray; |
||
10 | |||
11 | // Value is `user_role`.`name` |
||
12 | case NEWCOMER = 'newcomer'; |
||
13 | case ADVISOR = 'advisor'; |
||
14 | case MANAGING_ADVISOR = 'managing_advisor'; |
||
15 | case ADMIN = 'admin'; |
||
16 | |||
17 | /** |
||
18 | * Get the enum case name that can be displayed by the frontend. |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | 10 | public function getDisplayName(): string |
|
32 |