Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
SessionAccount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Data; |
6 | |
7 | use PeServer\App\Models\Domain\UserLevel; |
8 | use PeServer\App\Models\Domain\UserState; |
9 | |
10 | /** |
11 | * @immutable |
12 | */ |
13 | class SessionAccount |
14 | { |
15 | /** |
16 | * 生成。 |
17 | * |
18 | * @param string $userId |
19 | * @param string $loginId |
20 | * @param string $name |
21 | * @param string $level |
22 | * @phpstan-param UserLevel::* $level |
23 | * @param string $state |
24 | * @phpstan-param UserState::* $state |
25 | */ |
26 | public function __construct( |
27 | public string $userId, |
28 | public string $loginId, |
29 | public string $name, |
30 | public string $level, |
31 | public string $state |
32 | ) { |
33 | } |
34 | } |