Test Failed
Pull Request — master (#20)
by Vladislav
03:31 queued 01:03
created

getResponseClassnameByCondition()   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
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Account\GetTradingFeeRate;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PrivateEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Derivatives\Contract\Account\GetTradingFeeRate\Response\GetTradingFeeRateResponse;
7
use Carpenstar\ByBitAPI\Derivatives\Contract\Account\GetTradingFeeRate\Request\GetTradingFeeRateRequest;
8
9
class GetTradingFeeRate extends PrivateEndpoint implements IGetEndpointInterface
10
{
11
    protected function getEndpointUrl(): string
12
    {
13
        return "/contract/v3/private/account/fee-rate";
14
    }
15
16
    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

16
    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...
17
    {
18
        return GetTradingFeeRateResponse::class;
19
    }
20
21
    protected function getRequestClassname(): string
22
    {
23
        return GetTradingFeeRateRequest::class;
24
    }
25
}