Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class TickerInfoRequest extends AbstractParameters |
||
7 | { |
||
8 | /** |
||
9 | * Only linear category support at now |
||
10 | * @var string $category |
||
11 | */ |
||
12 | protected string $category = 'linear'; |
||
13 | |||
14 | protected string $symbol; |
||
15 | |||
16 | public function __construct() |
||
17 | { |
||
18 | $this->setRequiredField('symbol'); |
||
19 | } |
||
20 | |||
21 | public function getCategory(): string |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param string $symbol |
||
28 | * @return TickerInfoRequest |
||
29 | */ |
||
30 | public function setSymbol(string $symbol): self |
||
31 | { |
||
32 | $this->symbol = $symbol; |
||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getSymbol(): string |
||
42 | } |
||
43 | } |