| 1 | <?php |
||
| 10 | class PasswordBlacklistValidator implements Validator |
||
| 11 | { |
||
| 12 | /** @var string $file */ |
||
| 13 | private $file; |
||
| 14 | |||
| 15 | public function __construct(string $file = null) |
||
| 23 | |||
| 24 | /** {@inheritdoc} */ |
||
| 25 | public function validate(string $password): bool |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Iterates over and yields each blacklisted password |
||
| 38 | * |
||
| 39 | * @return Generator |
||
| 40 | */ |
||
| 41 | private function getBlacklistPasswords(): Generator |
||
| 51 | } |
||
| 52 |