Test Failed
Pull Request — master (#20)
by Vladislav
02:49
created

WalletBalance::getResponseClassname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Account\WalletBalance;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PrivateEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Core\Objects\StubQueryBag;
7
use Carpenstar\ByBitAPI\Derivatives\Contract\Account\WalletBalance\Response\WalletBalanceResponse;
8
use Carpenstar\ByBitAPI\Derivatives\Contract\Account\WalletBalance\Request\WalletBalanceRequest;
9
10
class WalletBalance extends PrivateEndpoint implements IGetEndpointInterface
11
{
12
    protected function getEndpointUrl(): string
13
    {
14
        return "/contract/v3/private/account/wallet/balance";
15
    }
16
17
    protected function getRequestClassname(): string
18
    {
19
        return WalletBalanceRequest::class;
20
    }
21
22
    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

22
    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...
23
    {
24
        return WalletBalanceResponse::class;
25
    }
26
}