| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 1 | public function getResponseShapeDefinition() : array |
|
| 46 | { |
||
| 47 | return [ |
||
| 48 | 1 | 'type' => 'object', |
|
| 49 | 'required' => [ |
||
| 50 | 'jsonrpc', |
||
| 51 | ], |
||
| 52 | 'properties' => [ |
||
| 53 | 'id' => [ |
||
| 54 | 'example' => 'req_id', |
||
| 55 | 'oneOf' => [ |
||
| 56 | ['type' => 'string'], |
||
| 57 | ['type' => 'number'], |
||
| 58 | ], |
||
| 59 | ], |
||
| 60 | 'jsonrpc' => [ |
||
| 61 | 'type' => 'string', |
||
| 62 | 'example' => '2.0', |
||
| 63 | ], |
||
| 64 | 'result' => [ |
||
| 65 | 'title' => 'Result' |
||
| 66 | ], |
||
| 67 | 'error' => [ |
||
| 68 | 'title' => 'Error' |
||
| 69 | ], |
||
| 96 |