Test Failed
Pull Request — master (#13)
by Vladislav
09:26 queued 01:13
created

WalletBalance   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEndpointUrl() 0 3 1
A getRequestClassname() 0 3 1
A getResponseClassnameByCondition() 0 3 1
1
<?php
2
namespace Carpenstar\ByBitAPI\Spot\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\Spot\Account\WalletBalance\Response\WalletBalanceResponse;
8
9
/**
10
 * https://bybit-exchange.github.io/docs/spot/wallet
11
 */
12
class WalletBalance extends PrivateEndpoint implements IGetEndpointInterface
13
{
14
    protected function getEndpointUrl(): string
15
    {
16
        return "/spot/v3/private/account";
17
    }
18
19
    protected function getRequestClassname(): string
20
    {
21
        return StubQueryBag::class;
22
    }
23
24
    protected function getResponseClassnameByCondition(array &$apiData = null): string
25
    {
26
        return WalletBalanceResponse::class;
27
    }
28
}