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

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