Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
20 | 5 | public function __construct(string $username, string $password) |
|
21 | { |
||
22 | 5 | if ($username === '') { |
|
23 | 2 | throw new CredentialsException('username is required', 1536353801); |
|
24 | } |
||
25 | 3 | if ($password === '') { |
|
26 | 1 | throw new CredentialsException('password is required', 1536353831); |
|
27 | } |
||
28 | 2 | $this->username = $username; |
|
29 | 2 | $this->password = $password; |
|
30 | 2 | } |
|
31 | |||
42 |