Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
37 | 9 | public function __construct($context) |
|
38 | { |
||
39 | 9 | $factory = new Factory(); |
|
40 | 9 | $factory->setConstraintClass('request body', SchemaConstraint::class); |
|
41 | 9 | $factory->setConstraintClass('response body', SchemaConstraint::class); |
|
42 | 9 | $this->validator = $factory->createInstanceFor($context); |
|
43 | 9 | $this->context = $context; |
|
44 | } |
||
45 | |||
78 |