Test Failed
Pull Request — master (#3)
by Vladislav
02:16
created

TickersRequestOptions   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSymbol() 0 3 1
A setSymbol() 0 4 1
1
<?php
2
namespace Carpenstar\ByBitAPI\Spot\MarketData\Tickers\Request;
3
4
use Carpenstar\ByBitAPI\Core\Objects\OptionsEntity;
0 ignored issues
show
Bug introduced by
The type Carpenstar\ByBitAPI\Core\Objects\OptionsEntity was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
6
class TickersRequestOptions extends OptionsEntity
7
{
8
    /**
9
     * Name of the trading pair
10
     * @required false
11
     * @var string $symbol
12
     */
13
    protected string $symbol;
14
15
    /**
16
     * @return string
17
     */
18
    public function getSymbol(): string
19
    {
20
        return $this->symbol;
21
    }
22
23
    /**
24
     * @param string $symbol
25
     * @return TickersRequestOptions
26
     */
27
    public function setSymbol(string $symbol): self
28
    {
29
        $this->symbol = $symbol;
30
        return $this;
31
    }
32
}