TickerInfoRequest::getCategory()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Derivatives\MarketData\TickerInfo\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Derivatives\MarketData\TickerInfo\Interfaces\ITickerInfoRequestInterface;
7
8
class TickerInfoRequest extends AbstractParameters implements ITickerInfoRequestInterface
9
{
10
    /**
11
     * Only linear category support at now
12
     * @var string $category
13
     */
14
    protected string $category = 'linear';
15
16
    protected string $symbol;
17
18
    public function getCategory(): string
19
    {
20
        return $this->category;
21
    }
22
23
    /**
24
     * @param string $symbol
25
     * @return TickerInfoRequest
26
     */
27
    public function setSymbol(string $symbol): self
28
    {
29
        $this->symbol = $symbol;
30
        return $this;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getSymbol(): string
37
    {
38
        return $this->symbol;
39
    }
40
}
41