Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class Validator implements ValidatorInterface |
||
13 | { |
||
14 | private ?TranslatorInterface $translator; |
||
15 | |||
16 | 3 | public function __construct(?TranslatorInterface $translator = null) |
|
19 | 3 | } |
|
20 | |||
21 | /** |
||
22 | * @param DataSetInterface $dataSet |
||
23 | * @param Rule[] $rules |
||
24 | * |
||
25 | * @return ResultSet |
||
26 | */ |
||
27 | 3 | public function validate(DataSetInterface $dataSet, iterable $rules): ResultSet |
|
41 | } |
||
42 | |||
43 | 1 | public function withTranslator(?TranslatorInterface $translator): self |
|
50 |