GetOrderListRequest::setCursor()   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
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Order\GetOrderList\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Derivatives\Contract\Order\GetOrderList\Interfaces\IGetOrderListRequestInterface;
7
8
class GetOrderListRequest extends AbstractParameters implements IGetOrderListRequestInterface
9
{
10
    /**
11
     * Symbol name
12
     * @var string $symbol
13
     */
14
    protected string $symbol;
15
16
    /**
17
     * Order id
18
     * @var string $orderId
19
     */
20
    protected string $orderId;
21
22
    /**
23
     * User customised order id
24
     * @var string $orderLinkId
25
     */
26
    protected string $orderLinkId;
27
28
    /**
29
     * Order status. Return all status orders if not passed
30
     * @var string $orderStatus
31
     */
32
    protected string $orderStatus;
33
34
    /**
35
     * Order,StopOrder
36
     * @var string $orderFilter
37
     */
38
    protected string $orderFilter;
39
40
    /**
41
     * Limit for data size per page. [1, 50]. Default: 20
42
     * @var int $limit
43
     */
44
    protected int $limit = 20;
45
46
    /**
47
     * Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set
48
     * @var string $cursor
49
     */
50
    protected string $cursor;
51
52
    /**
53
     * @return string
54
     */
55
    public function getSymbol(): string
56
    {
57
        return $this->symbol;
58
    }
59
60
    /**
61
     * @param string $symbol
62
     * @return GetOrderListRequest
63
     */
64
    public function setSymbol(string $symbol): self
65
    {
66
        $this->symbol = $symbol;
67
        return $this;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getOrderId(): string
74
    {
75
        return $this->orderId;
76
    }
77
78
    /**
79
     * @param string $orderId
80
     * @return GetOrderListRequest
81
     */
82
    public function setOrderId(string $orderId): self
83
    {
84
        $this->orderId = $orderId;
85
        return $this;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function getOrderLinkId(): string
92
    {
93
        return $this->orderLinkId;
94
    }
95
96
    /**
97
     * @param string $orderLinkId
98
     * @return GetOrderListRequest
99
     */
100
    public function setOrderLinkId(string $orderLinkId): self
101
    {
102
        $this->orderLinkId = $orderLinkId;
103
        return $this;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getOrderStatus(): string
110
    {
111
        return $this->orderStatus;
112
    }
113
114
    /**
115
     * @param string $orderStatus
116
     * @return GetOrderListRequest
117
     */
118
    public function setOrderStatus(string $orderStatus): self
119
    {
120
        $this->orderStatus = $orderStatus;
121
        return $this;
122
    }
123
124
    /**
125
     * @return string
126
     */
127
    public function getOrderFilter(): string
128
    {
129
        return $this->orderFilter;
130
    }
131
132
    /**
133
     * @param string $orderFilter
134
     * @return GetOrderListRequest
135
     */
136
    public function setOrderFilter(string $orderFilter): self
137
    {
138
        $this->orderFilter = $orderFilter;
139
        return $this;
140
    }
141
142
    /**
143
     * @return int
144
     */
145
    public function getLimit(): int
146
    {
147
        return $this->limit;
148
    }
149
150
    /**
151
     * @param int $limit
152
     * @return GetOrderListRequest
153
     */
154
    public function setLimit(int $limit): self
155
    {
156
        $this->limit = $limit;
157
        return $this;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getCursor(): string
164
    {
165
        return $this->cursor;
166
    }
167
168
    /**
169
     * @param string $cursor
170
     * @return GetOrderListRequest
171
     */
172
    public function setCursor(string $cursor): self
173
    {
174
        $this->cursor = $cursor;
175
        return $this;
176
    }
177
}
178