| Total Complexity | 1 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | enum BookingType: string implements LocalizedPhpEnumType |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * A user assigns and approves his own booking. |
||
| 13 | */ |
||
| 14 | case SelfApproved = 'self_approved'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * A user requests an admin to assign and approve an **equivalent** booking. |
||
| 18 | */ |
||
| 19 | case Application = 'application'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * An admin assigns and approves a booking **equivalent** to the one requested by a user. |
||
| 23 | */ |
||
| 24 | case AdminAssigned = 'admin_assigned'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * A user assigns, but an admin approves, the exact same booking. |
||
| 28 | */ |
||
| 29 | case AdminApproved = 'admin_approved'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The system automatically assigns and approves those bookings upon user registration confirmation. |
||
| 33 | */ |
||
| 34 | case Mandatory = 'mandatory'; |
||
| 35 | |||
| 36 | 1 | public function getDescription(): string |
|
| 47 |