Test Failed
Pull Request — master (#21)
by Vladislav
15:25 queued 07:09
created

PublicTradingHistoryRequest::getSymbol()   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
3
namespace Carpenstar\ByBitAPI\Derivatives\MarketData\PublicTradingHistory\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Derivatives\MarketData\PublicTradingHistory\Interfaces\IPublicTradingHistoryRequestInterface;
7
8
class PublicTradingHistoryRequest extends AbstractParameters implements IPublicTradingHistoryRequestInterface
9
{
10
    /**
11
     * Product type.linear
12
     * @var string $category
13
     */
14
    protected string $category = "linear"; // At current time, support linear type only
15
16
    /**
17
     * Symbol name
18
     * @var string
19
     */
20
    protected string $symbol;
21
22
    /**
23
     * Limit for data size per page. [1, 1000]. Default: 500
24
     * @var int $limit
25
     */
26
    protected int $limit = 500;
27
28
    /**
29
     * @return string
30
     */
31
    public function getCategory(): string
32
    {
33
        return $this->category;
34
    }
35
36
    /**
37
     * @param string $symbol
38
     * @return PublicTradingHistoryRequest
39
     */
40
    public function setSymbol(string $symbol): self
41
    {
42
        $this->symbol = $symbol;
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getSymbol(): string
50
    {
51
        return $this->symbol;
52
    }
53
54
    /**
55
     * @param int $limit
56
     * @return PublicTradingHistoryRequest
57
     */
58
    public function setLimit(int $limit): self
59
    {
60
        $this->limit = $limit;
61
        return $this;
62
    }
63
64
    /**
65
     * @return int
66
     */
67
    public function getLimit(): int
68
    {
69
        return $this->limit;
70
    }
71
72
73
}
74