Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class UserIdentity implements UserIdentityInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var UserHandle |
||
11 | */ |
||
12 | private $userHandle; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $username; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $displayName; |
||
23 | |||
24 | 1 | public function __construct(UserHandle $userHandle, string $username, string $displayName) |
|
25 | { |
||
26 | 1 | $this->userHandle = $userHandle; |
|
27 | 1 | $this->username = $username; |
|
28 | 1 | $this->displayName = $displayName; |
|
29 | 1 | } |
|
30 | |||
31 | 1 | public function getUserHandle(): UserHandle |
|
32 | { |
||
33 | 1 | return $this->userHandle; |
|
34 | } |
||
35 | |||
36 | 1 | public function getUsername(): string |
|
37 | { |
||
38 | 1 | return $this->username; |
|
39 | } |
||
40 | |||
41 | 1 | public function getDisplayName(): string |
|
44 | } |
||
45 | } |
||
46 |