Total Complexity | 6 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class SpreadDataRequest implements RequestInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var |
||
16 | */ |
||
17 | private $assetPair; |
||
18 | /** |
||
19 | * @var null |
||
20 | */ |
||
21 | private $since; |
||
22 | |||
23 | /** |
||
24 | * OrderBookRequest constructor. |
||
25 | * @param $assetPair |
||
26 | * @param null|mixed $since |
||
27 | */ |
||
28 | 2 | public function __construct($assetPair, $since = null) |
|
29 | { |
||
30 | 2 | $this->assetPair = $assetPair; |
|
31 | 2 | $this->since = $since; |
|
32 | 2 | } |
|
33 | |||
34 | /** |
||
35 | * Returns the api request name |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | 1 | public function getMethod() |
|
40 | { |
||
41 | 1 | return 'Spread'; |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | 1 | public function getVisibility() |
|
48 | { |
||
49 | 1 | return VisibilityEnum::VISIBILITY_PUBLIC; |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return array |
||
54 | */ |
||
55 | 1 | public function getRequestData() |
|
63 | } |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | 1 | public function getResponseClassName() |
|
73 |