Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Engelsystem\Models\Shifts; |
| 6 | |
| 7 | enum ShiftSignupStatus: string |
| 8 | { |
| 9 | /** |
| 10 | * Shift has free places |
| 11 | */ |
| 12 | case FREE = 'FREE'; |
| 13 | |
| 14 | /** |
| 15 | * Shift collides with users shifts |
| 16 | */ |
| 17 | case COLLIDES = 'COLLIDES'; |
| 18 | |
| 19 | /** |
| 20 | * User cannot join because of a restricted angeltype or user is not in the angeltype |
| 21 | */ |
| 22 | case ANGELTYPE = 'ANGELTYPE'; |
| 23 | |
| 24 | /** |
| 25 | * Shift is full |
| 26 | */ |
| 27 | case OCCUPIED = 'OCCUPIED'; |
| 28 | |
| 29 | /** |
| 30 | * User is admin and can do what he wants. |
| 31 | */ |
| 32 | case ADMIN = 'ADMIN'; |
| 33 | |
| 34 | /** |
| 35 | * Shift has already ended, no signup |
| 36 | */ |
| 37 | case SHIFT_ENDED = 'SHIFT_ENDED'; |
| 38 | |
| 39 | /** |
| 40 | * Shift is not available yet |
| 41 | */ |
| 42 | case NOT_YET = 'NOT_YET'; |
| 43 | |
| 44 | /** |
| 45 | * User is already signed up |
| 46 | */ |
| 47 | case SIGNED_UP = 'SIGNED_UP'; |
| 48 | |
| 49 | /** |
| 50 | * User has to be arrived |
| 51 | */ |
| 52 | case NOT_ARRIVED = 'NOT_ARRIVED'; |
| 53 | } |