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 |
||
12 | 7 | public function getRequestShapeDefinition() : array |
|
13 | { |
||
14 | 7 | return [ |
|
15 | 7 | 'type' => 'object', |
|
16 | 7 | 'required' => ['jsonrpc', 'method'], |
|
17 | 7 | 'properties' => [ |
|
18 | 7 | 'id' => [ |
|
19 | 7 | 'example' => 'req_id', |
|
20 | 7 | 'type' => 'string', |
|
21 | 7 | ], |
|
22 | 7 | 'jsonrpc' => [ |
|
23 | 7 | 'type' => 'string', |
|
24 | 7 | 'example' => '2.0', |
|
25 | 7 | ], |
|
26 | 7 | 'method' => ['type' => 'string'], |
|
27 | 7 | 'params' => ['title' => 'Method parameters'], |
|
28 | 7 | ], |
|
70 |