Test Failed
Pull Request — master (#20)
by Vladislav
08:15
created

InstrumentInfo::getResponseClassname()   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\InstrumentInfo;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Derivatives\MarketData\InstrumentInfo\Request\InstrumentInfoRequest;
7
use Carpenstar\ByBitAPI\Derivatives\MarketData\InstrumentInfo\Response\InstrumentInfoResponse;
8
9
/**
10
 * Get launched instruments information.
11
 * https://bybit-exchange.github.io/docs/derivatives/public/instrument-info
12
 */
13
class InstrumentInfo extends PublicEndpoint implements IGetEndpointInterface
14
{
15
    protected function getEndpointUrl(): string
16
    {
17
        return "/derivatives/v3/public/instruments-info";
18
    }
19
20
    public function getRequestClassname(): string
21
    {
22
        return InstrumentInfoRequest::class;
23
    }
24
25
    protected function getResponseClassnameByCondition(array &$apiData = null): string
0 ignored issues
show
Unused Code introduced by
The parameter $apiData is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

25
    protected function getResponseClassnameByCondition(/** @scrutinizer ignore-unused */ array &$apiData = null): string

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
        return InstrumentInfoResponse::class;
28
    }
29
}