ReplaceOrderResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 19
rs 10
c 2
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getOrderId() 0 3 1
A getOrderLinkId() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Order\ReplaceOrder\Response;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractResponse;
6
use Carpenstar\ByBitAPI\Derivatives\Contract\Order\ReplaceOrder\Interfaces\IReplaceOrderResponseInterface;
7
8
class ReplaceOrderResponse extends AbstractResponse implements IReplaceOrderResponseInterface
9
{
10
    private string $orderId;
11
    private string $orderLinkId;
12
13
    public function __construct(array $data)
14
    {
15
        $this->orderId = $data['orderId'];
16
        $this->orderLinkId = $data['orderLinkId'];
17
    }
18
19
    public function getOrderId(): string
20
    {
21
        return $this->orderId;
22
    }
23
24
    public function getOrderLinkId(): string
25
    {
26
        return $this->orderLinkId;
27
    }
28
}
29