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