Passed
Push — master ( 3e99b0...1fa2df )
by Vladislav
04:12 queued 01:58
created

RiskLimitsRequestOptions::getCategory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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