Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class QueryLedgersRequest implements RequestInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $id; |
||
19 | |||
20 | /** |
||
21 | * QueryLedgersRequest constructor. |
||
22 | * @param string $id |
||
23 | */ |
||
24 | 2 | public function __construct($id) |
|
25 | { |
||
26 | 2 | $this->id = $id; |
|
27 | 2 | } |
|
28 | |||
29 | |||
30 | /** |
||
31 | * Returns the api request name |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | 1 | public function getMethod() |
|
36 | { |
||
37 | 1 | return 'QueryLedgers'; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 1 | public function getVisibility() |
|
44 | { |
||
45 | 1 | return VisibilityEnum::VISIBILITY_PRIVATE; |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | 1 | public function getRequestData() |
|
52 | { |
||
53 | 1 | $ret = []; |
|
54 | 1 | $ret["id"] = $this->id; |
|
55 | 1 | return $ret; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 1 | public function getResponseClassName() |
|
64 | } |
||
65 | } |
||
66 |