| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | enum SexOption: string |
||
| 8 | { |
||
| 9 | use EnumToArray; |
||
| 10 | |||
| 11 | case MALE = 'M'; |
||
| 12 | case FEMALE = 'F'; |
||
| 13 | case OTHER = 'O'; |
||
| 14 | // Cannot have null as it is displayed in the create form as radio buttons |
||
| 15 | // case NULL = ''; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns the enum case name that can be displayed by the frontend. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | 6 | public function getDisplayName(): string |
|
| 31 |