Total Complexity | 7 |
Total Lines | 86 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class TradesHistoryRequest implements RequestInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $type; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | private $trades = false; |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $start; |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $end; |
||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | private $ofs = 0; |
||
35 | |||
36 | /** |
||
37 | * TradesHistoryRequest constructor. |
||
38 | * @param string $type |
||
39 | * @param bool $trades |
||
40 | * @param string $start |
||
41 | * @param string $end |
||
42 | * @param int $ofs |
||
43 | */ |
||
44 | 2 | public function __construct($type, $trades = false, $start = null, $end = null, $ofs = null) |
|
45 | { |
||
46 | 2 | $this->type = $type; |
|
47 | 2 | $this->trades = $trades; |
|
48 | 2 | $this->start = $start; |
|
49 | 2 | $this->end = $end; |
|
50 | 2 | $this->ofs = $ofs; |
|
51 | 2 | } |
|
52 | |||
53 | |||
54 | /** |
||
55 | * Returns the api request name |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 1 | public function getMethod() |
|
60 | { |
||
61 | 1 | return 'TradesHistory'; |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 1 | public function getVisibility() |
|
68 | { |
||
69 | 1 | return VisibilityEnum::VISIBILITY_PRIVATE; |
|
70 | } |
||
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | 1 | public function getRequestData() |
|
90 | } |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | 1 | public function getResponseClassName() |
|
98 | } |
||
99 | } |
||
100 |