| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 25 | public function __construct(string $context) |
|
| 30 | { |
||
| 31 | 25 | $factory = new Factory(null, null, Constraint::CHECK_MODE_VALIDATE_SCHEMA); |
|
| 32 | 25 | $factory->setConstraintClass('request body', SchemaConstraint::class); |
|
| 33 | 25 | $factory->setConstraintClass('response body', SchemaConstraint::class); |
|
| 34 | 25 | $this->validator = $factory->createInstanceFor($context); |
|
| 35 | 25 | $this->context = $context; |
|
| 36 | } |
||
| 37 | |||
| 58 |