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