Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 72.21% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class Validator implements ValidatorInterface |
||
11 | { |
||
12 | private ?FormatterInterface $formatter; |
||
13 | |||
14 | 1 | public function __construct(?FormatterInterface $formatter = null) |
|
17 | 1 | } |
|
18 | |||
19 | /** |
||
20 | * @param DataSetInterface $dataSet |
||
21 | * @param Rule[][] $rules |
||
22 | * @psalm-param iterable<string, Rule[]> $rules |
||
23 | * |
||
24 | * @return ResultSet |
||
25 | */ |
||
26 | 1 | public function validate(DataSetInterface $dataSet, iterable $rules): ResultSet |
|
41 | } |
||
42 | |||
43 | public function withFormatter(?FormatterInterface $formatter): self |
||
50 |