TickersRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSymbol() 0 3 1
A setSymbol() 0 4 1
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Spot\MarketData\Tickers\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Spot\MarketData\Tickers\Interfaces\ITickerRequestInterface;
7
8
class TickersRequest extends AbstractParameters implements ITickerRequestInterface
9
{
10
    /**
11
     * Name of the trading pair
12
     * @required false
13
     * @var string $symbol
14
     */
15
    protected string $symbol;
16
17
    /**
18
     * @return string
19
     */
20
    public function getSymbol(): string
21
    {
22
        return $this->symbol;
23
    }
24
25
    /**
26
     * @param string $symbol
27
     * @return TickersRequest
28
     */
29
    public function setSymbol(string $symbol): self
30
    {
31
        $this->symbol = $symbol;
32
        return $this;
33
    }
34
}
35