LastTradedPriceRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 25
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSymbol() 0 3 1
A setSymbol() 0 4 1
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