Passed
Pull Request — master (#7)
by Vladislav
03:08
created

TickersRequest::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
namespace Carpenstar\ByBitAPI\Spot\MarketData\Tickers\Request;
3
4
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
5
6
class TickersRequest extends AbstractParameters
7
{
8
    /**
9
     * Name of the trading pair
10
     * @required false
11
     * @var string $symbol
12
     */
13
    protected string $symbol;
14
15
    /**
16
     * @return string
17
     */
18
    public function getSymbol(): string
19
    {
20
        return $this->symbol;
21
    }
22
23
    /**
24
     * @param string $symbol
25
     * @return TickersRequest
26
     */
27
    public function setSymbol(string $symbol): self
28
    {
29
        $this->symbol = $symbol;
30
        return $this;
31
    }
32
}