| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class RespectValidator implements ValidatorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array<int,Validatable> |
||
| 14 | */ |
||
| 15 | protected array $validatables = []; |
||
| 16 | |||
| 17 | 12 | public function __construct(Validatable ...$validatables) |
|
| 18 | { |
||
| 19 | 12 | $this->validatables = $validatables; |
|
| 20 | } |
||
| 21 | |||
| 22 | 12 | public function inspect($value): ValidationReportInterface |
|
| 36 | } |
||
| 37 | |||
| 38 | 6 | public function validate($value): bool |
|
| 43 |