| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class Blacklist implements Rule |
||
| 12 | { |
||
| 13 | /** @var string[] */ |
||
| 14 | private $words; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | private $encoding; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string[] $words |
||
| 21 | */ |
||
| 22 | 1 | public function __construct(array $words, string $encoding = 'utf8') |
|
| 23 | { |
||
| 24 | 1 | $this->words = $words; |
|
| 25 | 1 | $this->encoding = $encoding; |
|
| 26 | 1 | } |
|
| 27 | |||
| 28 | 1 | public function __invoke(string $password) : void |
|
| 33 | } |
||
| 34 | } |
||
| 37 |