| Total Complexity | 5 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Coverage | 70.59% | 
| Changes | 2 | ||
| 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  | 
            |
| 40 | }  | 
            ||
| 41 | |||
| 42 | public function withFormatter(?FormatterInterface $formatter): self  | 
            ||
| 49 |