| 1 | <?php |
||
| 10 | final class PersistRuleChain |
||
| 11 | { |
||
| 12 | /** @var callable[] */ |
||
| 13 | private $rules; |
||
| 14 | |||
| 15 | /** @var InvalidPassword[] */ |
||
| 16 | private $exceptions = []; |
||
| 17 | |||
| 18 | public function __construct(callable ...$rules) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return InvalidPassword[] |
||
| 25 | */ |
||
| 26 | public function getExceptions() : array |
||
| 30 | |||
| 31 | public function __invoke(string $password) : bool |
||
| 47 | } |
||
| 48 |