Total Complexity | 5 |
Total Lines | 93 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class LedgersInfoRequest implements RequestInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $aclass; |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $asset; |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $type; |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $start; |
||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $end; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $ofs; |
||
39 | |||
40 | /** |
||
41 | * LedgersInfoRequest constructor. |
||
42 | * @param string $aclass |
||
43 | * @param string $asset |
||
44 | * @param string $type |
||
45 | * @param string $start |
||
46 | * @param string $end |
||
47 | * @param string $ofs |
||
48 | */ |
||
49 | 2 | public function __construct( |
|
50 | $aclass = 'currency', |
||
51 | $asset = 'all', |
||
52 | $type = 'all', |
||
53 | $start = null, |
||
54 | $end = null, |
||
55 | $ofs = null |
||
56 | ) { |
||
57 | 2 | $this->aclass = $aclass; |
|
58 | 2 | $this->asset = $asset; |
|
59 | 2 | $this->type = $type; |
|
60 | 2 | $this->start = $start; |
|
61 | 2 | $this->end = $end; |
|
62 | 2 | $this->ofs = $ofs; |
|
63 | 2 | } |
|
64 | |||
65 | |||
66 | /** |
||
67 | * Returns the api request name |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | 1 | public function getMethod() |
|
72 | { |
||
73 | 1 | return 'Ledgers'; |
|
74 | } |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | 1 | public function getVisibility() |
|
80 | { |
||
81 | 1 | return VisibilityEnum::VISIBILITY_PRIVATE; |
|
82 | } |
||
83 | |||
84 | /** |
||
85 | * @return array |
||
86 | */ |
||
87 | 1 | public function getRequestData() |
|
97 | } |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | 1 | public function getResponseClassName() |
|
105 | } |
||
106 | } |
||
107 |