Total Complexity | 11 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | trait UserPasswordTrait |
||
8 | { |
||
9 | /** |
||
10 | * @var array{ |
||
|
|||
11 | * user: string|null, |
||
12 | * password: string|null, |
||
13 | * } |
||
14 | */ |
||
15 | private $authentication = ['user' => null, 'password' => null]; |
||
16 | |||
17 | /** |
||
18 | * @return array |
||
19 | */ |
||
20 | public function getAuthentication() |
||
23 | } |
||
24 | |||
25 | private function setAuthentication(array $authentication): void |
||
29 | } |
||
30 | } |
||
31 | |||
32 | public function getUser(): ?string |
||
35 | } |
||
36 | |||
37 | public function withUser(?string $user): self |
||
43 | } |
||
44 | |||
45 | public function getPassword(): ?string |
||
48 | } |
||
49 | |||
50 | public function withPassword(?string $password): self |
||
56 | } |
||
57 | |||
58 | private function getUserInfoString(): string |
||
70 |