| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | final class UserInfo implements ComponentInterface |
||
| 20 | { |
||
| 21 | private User $user; |
||
| 22 | private ?Password $password = null; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param mixed $user |
||
| 26 | * @param mixed $password |
||
| 27 | * |
||
| 28 | * @throws InvalidArgumentException |
||
| 29 | */ |
||
| 30 | 62 | public function __construct($user, $password = null) |
|
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 45 | public function getValue(): string |
|
| 55 |