Test Failed
Pull Request — master (#4)
by Vladislav
14:06 queued 06:14
created

TickerInfoRequestOptions::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\Derivatives\MarketData\TickerInfo\Options;
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 TickerInfoRequestOptions extends OptionsEntity
7
{
8
    /**
9
     * Only linear category support at now
10
     * @var string $category
11
     */
12
    protected string $category = 'linear';
13
14
    protected string $symbol;
15
16
    public function __construct()
17
    {
18
        $this->setRequiredField('symbol');
19
    }
20
21
    public function getCategory(): string
22
    {
23
        return $this->category;
24
    }
25
26
    /**
27
     * @param string $symbol
28
     * @return TickerInfoRequestOptions
29
     */
30
    public function setSymbol(string $symbol): self
31
    {
32
        $this->symbol = $symbol;
33
        return $this;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getSymbol(): string
40
    {
41
        return $this->symbol;
42
    }
43
}