Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
33 | 7 | public function __construct($domain, $login, $hash) |
|
34 | { |
||
35 | 7 | $this->validator = new CredentialsValidator(); // Composition |
|
36 | |||
37 | 7 | $this->validator->validateSubdomain($domain); |
|
38 | 7 | $this->validator->validateLogin($login); |
|
39 | 7 | $this->validator->validateHash($hash); |
|
40 | |||
41 | 7 | $this->subdomain = $domain; |
|
42 | 7 | $this->login = $login; |
|
43 | 7 | $this->hash = $hash; |
|
44 | 7 | } |
|
71 |