Test Failed
Push — master ( 1fab6c...a74bfc )
by Vladislav
17:54 queued 15:22
created

CancelOrderRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Order\CancelOrder\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Derivatives\Contract\Order\CancelOrder\Interfaces\ICancelOrderRequestInterface;
7
8
class CancelOrderRequest extends AbstractParameters implements ICancelOrderRequestInterface
9
{
10
    /**
11
     * Symbol name
12
     * @var string $symbol
13
     */
14
    protected string $symbol;
15
16
    /**
17
     * Order id. Either orderId or orderLinkId is required
18
     * @var string $orderId
19
     */
20
    protected string $orderId;
21
22
    /**
23
     * User customised order id. Either orderId or orderLinkId is required
24
     * @var string $orderLinkId
25
     */
26
    protected string $orderLinkId;
27
28
    /**
29
     * @return string
30
     */
31
    public function getSymbol(): string
32
    {
33
        return $this->symbol;
34
    }
35
36
    /**
37
     * @param string $symbol
38
     * @return CancelOrderRequest
39
     */
40
    public function setSymbol(string $symbol): self
41
    {
42
        $this->symbol = $symbol;
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getOrderId(): string
50
    {
51
        return $this->orderId;
52
    }
53
54
    /**
55
     * @param string $orderId
56
     * @return CancelOrderRequest
57
     */
58
    public function setOrderId(string $orderId): self
59
    {
60
        $this->orderId = $orderId;
61
        return $this;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getOrderLinkId(): string
68
    {
69
        return $this->orderLinkId;
70
    }
71
72
    /**
73
     * @param string $orderLinkId
74
     * @return CancelOrderRequest
75
     */
76
    public function setOrderLinkId(string $orderLinkId): self
77
    {
78
        $this->orderLinkId = $orderLinkId;
79
        return $this;
80
    }
81
}
82