1 | <?php |
||
9 | class JsonSchemaValidator implements SchemaValidatorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \stdClass |
||
13 | */ |
||
14 | protected $schema; |
||
15 | |||
16 | /** |
||
17 | * @var Validator |
||
18 | */ |
||
19 | protected $validator; |
||
20 | |||
21 | /** |
||
22 | * @param \stdClass $schema |
||
23 | * @param Validator $validator |
||
24 | */ |
||
25 | 7 | public function __construct(\stdClass $schema, Validator $validator) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 7 | public function validate(string $jsonString): ValidationResult |
|
57 | |||
58 | /** |
||
59 | * @param ValidationResult $validationResult |
||
60 | */ |
||
61 | 5 | protected function mapErrorsToResultViolations(ValidationResult $validationResult): void |
|
67 | } |
||
68 |