Total Complexity | 7 |
Total Lines | 80 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class MergedOrderBookRequest extends AbstractParameters |
||
7 | { |
||
8 | /** |
||
9 | * Name of the trading pair |
||
10 | * @required true |
||
11 | * @var string $symbol |
||
12 | */ |
||
13 | protected string $symbol; |
||
14 | |||
15 | /** |
||
16 | * Precision of the merged orderbook, 1 means 1 digit |
||
17 | * @required false |
||
18 | * @var int $scale |
||
19 | */ |
||
20 | protected int $scale = 1; |
||
21 | |||
22 | /** |
||
23 | * Limit for data size. [1, 200]. Default: 100 |
||
24 | * @required false |
||
25 | * @var int $limit |
||
26 | */ |
||
27 | protected int $limit = 100; |
||
28 | |||
29 | public function __construct() |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getSymbol(): string |
||
38 | { |
||
39 | return $this->symbol; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $symbol |
||
44 | * @return MergedOrderBookRequest |
||
45 | */ |
||
46 | public function setSymbol(string $symbol): self |
||
47 | { |
||
48 | $this->symbol = $symbol; |
||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return int |
||
54 | */ |
||
55 | public function getScale(): int |
||
56 | { |
||
57 | return $this->scale; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param int $scale |
||
62 | * @return MergedOrderBookRequest |
||
63 | */ |
||
64 | public function setScale(int $scale): self |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getLimit(): int |
||
74 | { |
||
75 | return $this->limit; |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * @param int $limit |
||
80 | * @return MergedOrderBookRequest |
||
81 | */ |
||
82 | public function setLimit(int $limit): self |
||
86 | } |
||
87 | } |