Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
UserListItemDto | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Data\Dto; |
6 | |
7 | use PeServer\App\Models\Domain\UserLevel; |
8 | use PeServer\App\Models\Domain\UserState; |
9 | use PeServer\Core\Database\DtoBase; |
10 | use PeServer\Core\Serialization\Mapping; |
11 | use PeServer\Core\Text; |
12 | |
13 | class UserListItemDto extends DtoBase |
14 | { |
15 | #region variable |
16 | |
17 | #[Mapping(name: 'user_id')] |
18 | public string $userId = Text::EMPTY; |
19 | |
20 | #[Mapping(name: 'login_id')] |
21 | public string $loginId = Text::EMPTY; |
22 | |
23 | /** |
24 | * ユーザーレベル。 |
25 | * |
26 | * @phpstan-var UserLevel::* |
27 | */ |
28 | public string $level = UserLevel::UNKNOWN; |
29 | /** |
30 | * ユーザー状態 |
31 | * |
32 | * @phpstan-var UserState::* |
33 | */ |
34 | public string $state = UserState::UNKNOWN; |
35 | |
36 | /** |
37 | * 名前。 |
38 | */ |
39 | public string $name = Text::EMPTY; |
40 | |
41 | |
42 | #endregion |
43 | } |