Passed
Push — master ( 7a134a...be08d2 )
by Vladislav
02:35 queued 13s
created

TickersRequestOptions   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSymbol() 0 3 1
A setSymbol() 0 4 1
1
<?php
2
namespace Carpenstar\ByBitAPI\Spot\MarketData\Tickers\Request;
3
4
use Carpenstar\ByBitAPI\Core\Objects\OptionsEntity;
5
6
class TickersRequestOptions extends OptionsEntity
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 TickersRequestOptions
26
     */
27
    public function setSymbol(string $symbol): self
28
    {
29
        $this->symbol = $symbol;
30
        return $this;
31
    }
32
}