Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| UserStatus | 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\Identity\Domain\ValueObject; |
| 6 | |
| 7 | /** |
| 8 | * Account status. Only an admin changes it; a suspended user is refused at the |
| 9 | * authentication boundary (see Infrastructure\Security\UserChecker). Two states |
| 10 | * today — promote to more (banned/pending/…) by adding cases, no schema change |
| 11 | * beyond the values a case can hold. |
| 12 | */ |
| 13 | enum UserStatus: string |
| 14 | { |
| 15 | case ACTIVE = 'active'; |
| 16 | case SUSPENDED = 'suspended'; |
| 17 | } |