| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 24 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 7 | public function getRequestShapeDefinition() : array |
|
| 13 | { |
||
| 14 | 7 | return [ |
|
| 15 | 7 | 'type' => 'object', |
|
| 16 | 7 | 'required' => [ |
|
| 17 | 7 | 'jsonrpc', |
|
| 18 | 7 | 'method' |
|
| 19 | 7 | ], |
|
| 20 | 7 | 'properties' => [ |
|
| 21 | 7 | 'id' => [ |
|
| 22 | 7 | 'example' => 'req_id', |
|
| 23 | 7 | 'oneOf' => [ |
|
| 24 | 7 | ['type' => 'string'], |
|
| 25 | 7 | ['type' => 'number'], |
|
| 26 | 7 | ], |
|
| 27 | 7 | ], |
|
| 28 | 7 | 'jsonrpc' => [ |
|
| 29 | 7 | 'type' => 'string', |
|
| 30 | 7 | 'example' => '2.0', |
|
| 31 | 7 | ], |
|
| 32 | 7 | 'method' => [ |
|
| 33 | 7 | 'type' => 'string', |
|
| 34 | 7 | ], |
|
| 35 | 7 | 'params' => [ |
|
| 36 | 7 | 'title' => 'Method parameters', |
|
| 37 | 7 | ], |
|
| 96 |