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

BestBidAskPriceRequest::__construct()   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\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