| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function validate(SchemaInterface $schema, ?array $validators = null): array |
||
| 33 | { |
||
| 34 | $context = $this->contextBuilder->build($schema); |
||
| 35 | |||
| 36 | $validators = $validators ?? SupportedRules::build(); |
||
| 37 | |||
| 38 | foreach ($validators as $validator) { |
||
| 39 | $validator->validate($context); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $context->getErrors(); |
||
| 43 | } |
||
| 45 |