| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 1 | public function getResponseShapeDefinition() |
|
| 36 | { |
||
| 37 | return [ |
||
| 38 | 1 | 'type' => 'object', |
|
| 39 | 'required' => ['jsonrpc'], |
||
| 40 | 'properties' => [ |
||
| 41 | 'id' => [ |
||
| 42 | 'type' => 'string', |
||
| 43 | 'example' => 'req_id', |
||
| 44 | ], |
||
| 45 | 'jsonrpc' => [ |
||
| 46 | 'type' => 'string', |
||
| 47 | 'example' => '2.0', |
||
| 48 | ], |
||
| 49 | 'result' => ['title' => 'Result'], |
||
| 50 | 'error' => ['title' => 'Error'], |
||
| 51 | ], |
||
| 70 |