| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class SchemaValidator implements SchemaValidatorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ContextBuilderInterface |
||
| 14 | */ |
||
| 15 | protected $contextBuilder; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * SchemaValidator constructor. |
||
| 19 | * @param ContextBuilderInterface $contextBuilder |
||
| 20 | */ |
||
| 21 | public function __construct(ContextBuilderInterface $contextBuilder) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param SchemaInterface $schema |
||
| 28 | * @param RuleInterface[]|null $rules |
||
| 29 | * @return ValidationException[] |
||
| 30 | */ |
||
| 31 | public function validate(SchemaInterface $schema, ?array $rules = null): array |
||
| 46 |