LastTradedPriceRequest::getSymbol()   A
last analyzed

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\LastTradedPrice\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Spot\MarketData\LastTradedPrice\Interfaces\ILastTradedPriceRequestInterface;
7
use Carpenstar\ByBitAPI\Spot\MarketData\LastTradedPrice\LastTradedPrice;
8
9
class LastTradedPriceRequest extends AbstractParameters implements ILastTradedPriceRequestInterface
10
{
11
    /**
12
     * Name of the trading pair
13
     * @required false
14
     * @var string $symbol
15
     */
16
    protected string $symbol;
17
18
    /**
19
     * @return string
20
     */
21
    public function getSymbol(): string
22
    {
23
        return $this->symbol;
24
    }
25
26
    /**
27
     * @param string $symbol
28
     * @return LastTradedPrice
29
     */
30
    public function setSymbol(string $symbol): self
31
    {
32
        $this->symbol = $symbol;
33
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Spot...\LastTradedPriceRequest which is incompatible with the documented return type Carpenstar\ByBitAPI\Spot...edPrice\LastTradedPrice.
Loading history...
34
    }
35
}
36