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
3declare(strict_types=1);
4
5namespace PeServer\App\Models\Data\Dto;
6
7use PeServer\App\Models\Domain\UserLevel;
8use PeServer\App\Models\Domain\UserState;
9use PeServer\Core\Database\DtoBase;
10use PeServer\Core\Serialization\Mapping;
11use PeServer\Core\Text;
12
13class 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}