| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class PersistRuleChain |
||
| 11 | { |
||
| 12 | /** @var callable[] */ |
||
| 13 | private $rules; |
||
| 14 | |||
| 15 | /** @var InvalidPassword[] */ |
||
| 16 | private $exceptions = []; |
||
| 17 | |||
| 18 | 2 | public function __construct(callable ...$rules) |
|
| 19 | { |
||
| 20 | 2 | $this->rules = $rules; |
|
| 21 | 2 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return InvalidPassword[] |
||
| 25 | */ |
||
| 26 | public function exceptions() : array |
||
| 29 | } |
||
| 30 | |||
| 31 | 2 | public function __invoke(string $password) : bool |
|
| 46 | } |
||
| 47 | } |
||
| 48 |