| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 21 | public function __construct(string $login, string $password) |
||
| 22 | { |
||
| 23 | if (empty($login)) { |
||
| 24 | throw new \InvalidArgumentException(sprintf('Login should not be empty, got %s.', $login)); |
||
| 25 | } |
||
| 26 | |||
| 27 | if (empty($password)) { |
||
| 28 | throw new \InvalidArgumentException(sprintf('Password should not be empty.', $password)); |
||
| 29 | } |
||
| 30 | |||
| 31 | $this->login = $login; |
||
| 32 | $this->password = $password; |
||
| 33 | } |
||
| 34 | |||
| 51 |