Passed
Push — master ( 6bd31a...1d415b )
by Vladislav
04:25 queued 02:10
created

OrderHistory   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 getResponseClassname() 0 3 1
A getEndpointUrl() 0 3 1
A getRequestClassname() 0 3 1
1
<?php
2
namespace Carpenstar\ByBitAPI\Spot\Trade\OrderHistory;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PrivateEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Spot\Trade\OrderHistory\Response\OrderHistoryResponse;
7
use Carpenstar\ByBitAPI\Spot\Trade\OrderHistory\Request\OrderHistoryRequestOptions;
8
9
class OrderHistory extends PrivateEndpoint implements IGetEndpointInterface
10
{
11
    protected function getEndpointUrl(): string
12
    {
13
        return "/spot/v3/private/history-orders";
14
    }
15
16
    protected function getResponseClassname(): string
17
    {
18
        return OrderHistoryResponse::class;
19
    }
20
21
    protected function getRequestClassname(): string
22
    {
23
        return OrderHistoryRequestOptions::class;
24
    }
25
}