| Total Complexity | 9 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| 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 |
||
| 33 | { |
||
| 34 | return $this->authentication['user'] ?? null; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getPassword(): ?string |
||
| 40 | } |
||
| 41 | |||
| 42 | private function getUserInfoString(): string |
||
| 54 |