ReplaceOrderResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 2
b 0
f 0
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