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