Test Failed
Pull Request — master (#14)
by Vladislav
22:59 queued 14:48
created

BestBidAskPriceRequest   A

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