Test Failed
Push — master ( 912b2a...b3ee71 )
by Vladislav
25:05 queued 22:30
created

BatchCancelOrderByIdRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Spot\Trade\BatchCancelOrderById\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Spot\Trade\BatchCancelOrderById\Interfaces\IBatchCancelOrderByIdRequestInterface;
7
8
class BatchCancelOrderByIdRequest extends AbstractParameters implements IBatchCancelOrderByIdRequestInterface
9
{
10
    /**
11
     * Order ID, use commas to indicate multiple orderIds. Maximum of 100 ids.
12
     * @var string $orderIds
13
     */
14
    protected string $orderIds;
15
16
    /**
17
     * Order category. 0:normal order by default; 1:TP/SL order, Required for TP/SL order.
18
     * @var int $orderCategory
19
     */
20
    protected int $orderCategory;
21
22
    /**
23
     * @param string $orderIds
24
     * @return BatchCancelOrderByIdRequest
25
     */
26
    public function setOrderIds(string $orderIds): self
27
    {
28
        $this->orderIds = $orderIds;
29
        return $this;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getOrderIds(): string
36
    {
37
        return $this->orderIds;
38
    }
39
40
    /**
41
     * @param int $orderCategory
42
     * @return BatchCancelOrderByIdRequest
43
     */
44
    public function setOrderCategory(int $orderCategory): self
45
    {
46
        $this->orderCategory = $orderCategory;
47
        return $this;
48
    }
49
50
    /**
51
     * @return int
52
     */
53
    public function getOrderCategory(): int
54
    {
55
        return $this->orderCategory;
56
    }
57
}
58