| 1 | <?php |
||
| 9 | class JsonSchemaValidator |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \stdClass |
||
| 13 | */ |
||
| 14 | protected $schema; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Validator |
||
| 18 | */ |
||
| 19 | protected $validator; |
||
| 20 | |||
| 21 | 1 | public function __construct(\stdClass $schema, Validator $validator) |
|
| 26 | |||
| 27 | 1 | public function validate(string $jsonString): ValidationResult |
|
| 50 | |||
| 51 | 1 | protected function mapErrorsToResultViolations(Validator $validator, ValidationResult $validationResult): void |
|
| 57 | } |
||
| 58 |