Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class PasswordMinimumNumberValidator implements Validator |
||
10 | { |
||
11 | /** @var int $minimum */ |
||
12 | private $minimum; |
||
13 | |||
14 | /** |
||
15 | * PasswordMinimumNumberValidator constructor. |
||
16 | * @param int $minimum The minimum number of numbers that should be in the password |
||
17 | */ |
||
18 | public function __construct(int $minimum = 1) |
||
21 | } |
||
22 | |||
23 | /** {@inheritdoc} */ |
||
24 | public function validate(string $password): bool |
||
35 |