Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| InvitationStatus | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Trip\Domain\ValueObject; |
| 6 | |
| 7 | /** |
| 8 | * Lifecycle of a trip invitation. It is created PENDING; the invitee moves it to |
| 9 | * ACCEPTED (which also creates the member row) or DECLINED. Resolved invitations |
| 10 | * are kept as an audit trail — the double-invite guard only looks at PENDING. |
| 11 | * Mirrors the enum-backed custom-type pattern (TripRole/CategoryType/UserStatus). |
| 12 | */ |
| 13 | enum InvitationStatus: string |
| 14 | { |
| 15 | case PENDING = 'pending'; |
| 16 | case ACCEPTED = 'accepted'; |
| 17 | case DECLINED = 'declined'; |
| 18 | } |