Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class PasswordDomainValidator implements Validator |
||
10 | { |
||
11 | /** @var string $domain */ |
||
12 | private $domain; |
||
13 | |||
14 | /** |
||
15 | * PasswordDomainValidator constructor. |
||
16 | * @param string $domain The domain to check that the password isn't |
||
17 | */ |
||
18 | public function __construct(string $domain) |
||
19 | { |
||
20 | $this->domain = $domain; |
||
21 | } |
||
22 | |||
23 | /** {@inheritdoc} */ |
||
24 | public function validate(string $password): bool |
||
31 | } |
||
32 | } |
||
33 |