Total Complexity | 8 |
Total Lines | 76 |
Duplicated Lines | 0 % |
Coverage | 73.68% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class RpcModel |
||
20 | { |
||
21 | /** @var string */ |
||
22 | private $jsonrpc; |
||
23 | |||
24 | /** @var string */ |
||
25 | private $method; |
||
26 | |||
27 | /** @var mixed|null */ |
||
28 | private $params; |
||
29 | |||
30 | /** @var mixed|null */ |
||
31 | private $id; |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getJsonrpc(): string |
||
37 | { |
||
38 | return $this->jsonrpc; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $jsonrpc |
||
43 | */ |
||
44 | 4 | public function setJsonrpc(string $jsonrpc): void |
|
45 | { |
||
46 | 4 | $this->jsonrpc = $jsonrpc; |
|
47 | 4 | } |
|
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 4 | public function getMethod(): string |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param string $method |
||
59 | */ |
||
60 | 4 | public function setMethod(string $method): void |
|
61 | { |
||
62 | 4 | $this->method = $method; |
|
63 | 4 | } |
|
64 | |||
65 | /** |
||
66 | * @return mixed|null |
||
67 | */ |
||
68 | 2 | public function getParams() |
|
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param mixed|null $params |
||
75 | */ |
||
76 | public function setParams($params): void |
||
77 | { |
||
78 | $this->params = $params; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @return mixed|null |
||
83 | */ |
||
84 | 2 | public function getId() |
|
87 | } |
||
88 | |||
89 | /** |
||
90 | * @param mixed|null $id |
||
91 | */ |
||
92 | 4 | public function setId($id): void |
|
95 | 4 | } |
|
96 | } |
||
97 |