1 | <?php |
||
21 | final class JsonSchemaConstraint extends Constraint |
||
22 | { |
||
23 | private $schema; |
||
24 | |||
25 | private $context; |
||
26 | |||
27 | private $validator; |
||
28 | |||
29 | private $errors = []; |
||
30 | |||
31 | 9 | public function __construct(stdClass $schema, string $context = null) |
|
37 | |||
38 | 4 | public function toString(): string |
|
42 | |||
43 | 9 | protected function matches($other): bool |
|
49 | |||
50 | 4 | protected function failureDescription($other): string |
|
54 | |||
55 | 4 | protected function additionalFailureDescription($other): string |
|
59 | } |
||
60 |