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

BestBidAskPriceRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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