GetOpenOrdersResponseItem::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 37
Code Lines 35

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 35
nc 1
nop 1
dl 0
loc 37
rs 9.36
c 1
b 0
f 0
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Order\GetOpenOrders\Response;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractResponse;
6
use Carpenstar\ByBitAPI\Core\Helpers\DateTimeHelper;
7
use Carpenstar\ByBitAPI\Derivatives\Contract\Order\GetOpenOrders\Interfaces\IGetOpenOrdersResponseItemInterface;
8
9
class GetOpenOrdersResponseItem extends AbstractResponse implements IGetOpenOrdersResponseItemInterface
10
{
11
    /**
12
     * Symbol name
13
     * @var string $symbol
14
     */
15
    private string $symbol;
16
17
    /**
18
     * Order id
19
     * @var string $orderId
20
     */
21
    private string $orderId;
22
23
    /**
24
     * User customised order id
25
     * @var string $orderLinkId
26
     */
27
    private string $orderLinkId;
28
29
    /**
30
     * Side. Buy,Sell
31
     * @var string $side
32
     */
33
    private string $side;
34
35
    /**
36
     * Order type. Market,Limit. For TP/SL order, it means the order type after triggered
37
     * @var string $orderType
38
     */
39
    private string $orderType;
40
41
    /**
42
     * Order price
43
     * @var float $price
44
     */
45
    private float $price;
46
47
    /**
48
     * Order quantity
49
     * @var float $qty
50
     */
51
    private float $qty;
52
53
    /**
54
     * Time in force
55
     * @var string $timeInForce
56
     */
57
    private string $timeInForce;
58
59
    /**
60
     * Order status
61
     * @var string $orderStatus
62
     */
63
    private string $orderStatus;
64
65
    /**
66
     * Last price when create the order
67
     * @var string $lastPriceOnCreated
68
     */
69
    private string $lastPriceOnCreated;
70
71
    /**
72
     * Created timestamp (ms)
73
     * @var \DateTime $createdTime
74
     */
75
    private \DateTime $createdTime;
76
77
    /**
78
     * Updated timestamp (ms)
79
     * @var \DateTime $updatedTime
80
     */
81
    private \DateTime $updatedTime;
82
83
    /**
84
     * Cancel type
85
     * @var string $cancelType
86
     */
87
    private string $cancelType;
88
89
    /**
90
     * Stop order type
91
     * @var string $stopOrderType
92
     */
93
    private string $stopOrderType;
94
95
    /**
96
     * 1: rise, 2: fall
97
     * @var int $triggerDirection
98
     */
99
    private int $triggerDirection;
100
101
    /**
102
     * The trigger type of trigger price
103
     * @var string $triggerBy
104
     */
105
    private string $triggerBy;
106
107
    /**
108
     * Trigger price
109
     * @var float|null $triggerPrice
110
     */
111
    private ?float $triggerPrice;
112
113
    /**
114
     * Cumulative executed position value
115
     * @var float $cumExecValue
116
     */
117
    private float $cumExecValue;
118
119
    /**
120
     * Cumulative trading fee
121
     * @var float $cumExecFee
122
     */
123
    private float $cumExecFee;
124
125
    /**
126
     * Cumulative executed qty
127
     * @var float $cumExecQty
128
     */
129
    private float $cumExecQty;
130
131
    /**
132
     * The remaining value waiting to be traded
133
     * @var float $leavesValue
134
     */
135
    private float $leavesValue;
136
137
    /**
138
     * The remaining quantity waiting to be traded
139
     * @var float $leavesQty
140
     */
141
    private float $leavesQty;
142
143
    /**
144
     * Take profit price
145
     * @var float $takeProfit
146
     */
147
    private float $takeProfit;
148
149
    /**
150
     * Stop loss price
151
     * @var float $stopLoss
152
     */
153
    private float $stopLoss;
154
155
    /**
156
     * TP/SL mode, Full: entire position for TP/SL. Partial: partial position tp/sl
157
     * @var string $tpslMode
158
     */
159
    private string $tpslMode;
160
161
    /**
162
     * The limit order price when take profit price is triggered
163
     * @var float $tpLimitPrice
164
     */
165
    private float $tpLimitPrice;
166
167
    /**
168
     * The limit order price when stop loss price is triggered
169
     * @var float $slLimitPrice
170
     */
171
    private float $slLimitPrice;
172
173
    /**
174
     * Trigger type of take profit
175
     * @var string $tpTriggerBy
176
     */
177
    private string $tpTriggerBy;
178
179
    /**
180
     * Trigger type of stop loss
181
     * @var string $slTriggerBy
182
     */
183
    private string $slTriggerBy;
184
185
    /**
186
     * Reduce only. true means reduce position size
187
     * @var bool $reduceOnly
188
     */
189
    private bool $reduceOnly;
190
191
    /**
192
     * Close on trigger. What is a close on trigger order?
193
     * @var bool $closeOnTrigger
194
     */
195
    private bool $closeOnTrigger;
196
197
    /**
198
     * SMP execution type
199
     * @var string $smpType
200
     */
201
    private string $smpType;
202
203
    /**
204
     * Smp group ID. If the uid has no group, it is 0 by default
205
     * @var int $smpGroup
206
     */
207
    private int $smpGroup;
208
209
    /**
210
     * The counterparty's orderID which triggers this SMP execution
211
     * @var string $smpOrderId
212
     */
213
    private string $smpOrderId;
214
215
    public function __construct(array $data)
216
    {
217
        $this
218
            ->setSymbol($data['symbol'])
219
            ->setOrderId($data['orderId'])
220
            ->setSide($data['side'])
221
            ->setOrderType($data['orderType'])
222
            ->setStopOrderType($data['stopOrderType'])
223
            ->setPrice($data['price'])
224
            ->setQty($data['qty'])
225
            ->setTimeInForce($data['timeInForce'])
226
            ->setOrderStatus($data['orderStatus'])
227
            ->setTriggerPrice($data['triggerPrice'])
228
            ->setOrderLinkId($data['orderLinkId'])
229
            ->setCreatedTime($data['createdTime'])
230
            ->setUpdatedTime($data['updatedTime'])
231
            ->setTakeProfit($data['takeProfit'])
232
            ->setStopLoss($data['stopLoss'])
233
            ->setTpTriggerBy($data['tpTriggerBy'])
234
            ->setSlTriggerBy($data['slTriggerBy'])
235
            ->setTriggerBy($data['triggerBy'])
236
            ->setReduceOnly($data['reduceOnly'])
237
            ->setLeavesQty($data['leavesQty'])
238
            ->setLeavesValue($data['leavesValue'])
239
            ->setCumExecQty($data['cumExecQty'])
240
            ->setCumExecValue($data['cumExecValue'])
241
            ->setCumExecFee($data['cumExecFee'])
242
            ->setTriggerDirection($data['triggerDirection'])
243
            ->setCancelType($data['cancelType'])
244
            ->setLastPriceOnCreated($data['lastPriceOnCreated'])
245
            ->setCloseOnTrigger($data['closeOnTrigger'])
246
            ->setTpslMode($data['tpslMode'])
247
            ->setTpLimitPrice((float)$data['tpLimitPrice'])
248
            ->setSlLimitPrice((float)$data['slLimitPrice'])
249
            ->setSmpType($data['smpType'])
250
            ->setSmpGroup($data['smpGroup'])
251
            ->setSmpOrderId($data['smpOrderId']);
252
    }
253
254
    /**
255
     * @return string
256
     */
257
    public function getSymbol(): string
258
    {
259
        return $this->symbol;
260
    }
261
262
    /**
263
     * @param string $symbol
264
     * @return GetOpenOrdersResponse
265
     */
266
    private function setSymbol(string $symbol): self
267
    {
268
        $this->symbol = $symbol;
269
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
270
    }
271
272
    /**
273
     * @return string
274
     */
275
    public function getOrderId(): string
276
    {
277
        return $this->orderId;
278
    }
279
280
    /**
281
     * @param string $orderId
282
     * @return GetOpenOrdersResponse
283
     */
284
    private function setOrderId(string $orderId): self
285
    {
286
        $this->orderId = $orderId;
287
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
288
    }
289
290
    /**
291
     * @return string
292
     */
293
    public function getOrderLinkId(): string
294
    {
295
        return $this->orderLinkId;
296
    }
297
298
    /**
299
     * @param string $orderLinkId
300
     * @return GetOpenOrdersResponse
301
     */
302
    private function setOrderLinkId(string $orderLinkId): self
303
    {
304
        $this->orderLinkId = $orderLinkId;
305
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
306
    }
307
308
    /**
309
     * @return string
310
     */
311
    public function getSide(): string
312
    {
313
        return $this->side;
314
    }
315
316
    /**
317
     * @param string $side
318
     * @return GetOpenOrdersResponse
319
     */
320
    private function setSide(string $side): self
321
    {
322
        $this->side = $side;
323
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
324
    }
325
326
    /**
327
     * @return string
328
     */
329
    public function getOrderType(): string
330
    {
331
        return $this->orderType;
332
    }
333
334
    /**
335
     * @param string $orderType
336
     * @return GetOpenOrdersResponse
337
     */
338
    private function setOrderType(string $orderType): self
339
    {
340
        $this->orderType = $orderType;
341
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
342
    }
343
344
    /**
345
     * @return float
346
     */
347
    public function getPrice(): float
348
    {
349
        return $this->price;
350
    }
351
352
    /**
353
     * @param float $price
354
     * @return GetOpenOrdersResponse
355
     */
356
    private function setPrice(float $price): self
357
    {
358
        $this->price = $price;
359
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
360
    }
361
362
    /**
363
     * @return float
364
     */
365
    public function getQty(): float
366
    {
367
        return $this->qty;
368
    }
369
370
    /**
371
     * @param float $qty
372
     * @return GetOpenOrdersResponse
373
     */
374
    private function setQty(float $qty): self
375
    {
376
        $this->qty = $qty;
377
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
378
    }
379
380
    /**
381
     * @return string
382
     */
383
    public function getTimeInForce(): string
384
    {
385
        return $this->timeInForce;
386
    }
387
388
    /**
389
     * @param string $timeInForce
390
     * @return GetOpenOrdersResponse
391
     */
392
    private function setTimeInForce(string $timeInForce): self
393
    {
394
        $this->timeInForce = $timeInForce;
395
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
396
    }
397
398
    /**
399
     * @return string
400
     */
401
    public function getOrderStatus(): string
402
    {
403
        return $this->orderStatus;
404
    }
405
406
    /**
407
     * @param string $orderStatus
408
     * @return GetOpenOrdersResponse
409
     */
410
    private function setOrderStatus(string $orderStatus): self
411
    {
412
        $this->orderStatus = $orderStatus;
413
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
414
    }
415
416
    /**
417
     * @return string
418
     */
419
    public function getLastPriceOnCreated(): string
420
    {
421
        return $this->lastPriceOnCreated;
422
    }
423
424
    /**
425
     * @param string $lastPriceOnCreated
426
     * @return GetOpenOrdersResponse
427
     */
428
    private function setLastPriceOnCreated(string $lastPriceOnCreated): self
429
    {
430
        $this->lastPriceOnCreated = $lastPriceOnCreated;
431
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
432
    }
433
434
    /**
435
     * @return \DateTime
436
     */
437
    public function getCreatedTime(): \DateTime
438
    {
439
        return $this->createdTime;
440
    }
441
442
    /**
443
     * @param string $createdTime
444
     * @return GetOpenOrdersResponse
445
     */
446
    private function setCreatedTime(string $createdTime): self
447
    {
448
        $this->createdTime = DateTimeHelper::makeFromTimestamp($createdTime);
0 ignored issues
show
Bug introduced by
$createdTime of type string is incompatible with the type integer expected by parameter $timestamp of Carpenstar\ByBitAPI\Core...er::makeFromTimestamp(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

448
        $this->createdTime = DateTimeHelper::makeFromTimestamp(/** @scrutinizer ignore-type */ $createdTime);
Loading history...
449
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
450
    }
451
452
    /**
453
     * @return \DateTime
454
     */
455
    public function getUpdatedTime(): \DateTime
456
    {
457
        return $this->updatedTime;
458
    }
459
460
    /**
461
     * @param string $updatedTime
462
     * @return GetOpenOrdersResponse
463
     */
464
    private function setUpdatedTime(string $updatedTime): self
465
    {
466
        $this->updatedTime = DateTimeHelper::makeFromTimestamp($updatedTime);
0 ignored issues
show
Bug introduced by
$updatedTime of type string is incompatible with the type integer expected by parameter $timestamp of Carpenstar\ByBitAPI\Core...er::makeFromTimestamp(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

466
        $this->updatedTime = DateTimeHelper::makeFromTimestamp(/** @scrutinizer ignore-type */ $updatedTime);
Loading history...
467
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
468
    }
469
470
    /**
471
     * @return string
472
     */
473
    public function getCancelType(): string
474
    {
475
        return $this->cancelType;
476
    }
477
478
    /**
479
     * @param string $cancelType
480
     * @return GetOpenOrdersResponse
481
     */
482
    private function setCancelType(string $cancelType): self
483
    {
484
        $this->cancelType = $cancelType;
485
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
486
    }
487
488
    /**
489
     * @return string
490
     */
491
    public function getStopOrderType(): string
492
    {
493
        return $this->stopOrderType;
494
    }
495
496
    /**
497
     * @param string $stopOrderType
498
     * @return GetOpenOrdersResponse
499
     */
500
    private function setStopOrderType(string $stopOrderType): self
501
    {
502
        $this->stopOrderType = $stopOrderType;
503
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
504
    }
505
506
    /**
507
     * @return int
508
     */
509
    public function getTriggerDirection(): int
510
    {
511
        return $this->triggerDirection;
512
    }
513
514
    /**
515
     * @param int $triggerDirection
516
     * @return GetOpenOrdersResponse
517
     */
518
    private function setTriggerDirection(int $triggerDirection): self
519
    {
520
        $this->triggerDirection = $triggerDirection;
521
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
522
    }
523
524
    /**
525
     * @return string
526
     */
527
    public function getTriggerBy(): string
528
    {
529
        return $this->triggerBy;
530
    }
531
532
    /**
533
     * @param string $triggerBy
534
     * @return GetOpenOrdersResponse
535
     */
536
    private function setTriggerBy(string $triggerBy): self
537
    {
538
        $this->triggerBy = $triggerBy;
539
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
540
    }
541
542
    /**
543
     * @return float|null
544
     */
545
    public function getTriggerPrice(): ?float
546
    {
547
        return $this->triggerPrice;
548
    }
549
550
    /**
551
     * @param float|null $triggerPrice
552
     * @return GetOpenOrdersResponse
553
     */
554
    private function setTriggerPrice(?float $triggerPrice): self
555
    {
556
        $this->triggerPrice = $triggerPrice;
557
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
558
    }
559
560
    /**
561
     * @return float
562
     */
563
    public function getCumExecValue(): float
564
    {
565
        return $this->cumExecValue;
566
    }
567
568
    /**
569
     * @param float $cumExecValue
570
     * @return GetOpenOrdersResponse
571
     */
572
    private function setCumExecValue(float $cumExecValue): self
573
    {
574
        $this->cumExecValue = $cumExecValue;
575
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
576
    }
577
578
    /**
579
     * @return float
580
     */
581
    public function getCumExecFee(): float
582
    {
583
        return $this->cumExecFee;
584
    }
585
586
    /**
587
     * @param float $cumExecFee
588
     * @return GetOpenOrdersResponse
589
     */
590
    private function setCumExecFee(float $cumExecFee): self
591
    {
592
        $this->cumExecFee = $cumExecFee;
593
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
594
    }
595
596
    /**
597
     * @return float
598
     */
599
    public function getCumExecQty(): float
600
    {
601
        return $this->cumExecQty;
602
    }
603
604
    /**
605
     * @param float $cumExecQty
606
     * @return GetOpenOrdersResponse
607
     */
608
    private function setCumExecQty(float $cumExecQty): self
609
    {
610
        $this->cumExecQty = $cumExecQty;
611
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
612
    }
613
614
    /**
615
     * @return float
616
     */
617
    public function getLeavesValue(): float
618
    {
619
        return $this->leavesValue;
620
    }
621
622
    /**
623
     * @param float $leavesValue
624
     * @return GetOpenOrdersResponse
625
     */
626
    private function setLeavesValue(float $leavesValue): self
627
    {
628
        $this->leavesValue = $leavesValue;
629
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
630
    }
631
632
    /**
633
     * @return float
634
     */
635
    public function getLeavesQty(): float
636
    {
637
        return $this->leavesQty;
638
    }
639
640
    /**
641
     * @param float $leavesQty
642
     * @return GetOpenOrdersResponse
643
     */
644
    private function setLeavesQty(float $leavesQty): self
645
    {
646
        $this->leavesQty = $leavesQty;
647
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
648
    }
649
650
    /**
651
     * @return float
652
     */
653
    public function getTakeProfit(): float
654
    {
655
        return $this->takeProfit;
656
    }
657
658
    /**
659
     * @param float $takeProfit
660
     * @return GetOpenOrdersResponse
661
     */
662
    private function setTakeProfit(float $takeProfit): self
663
    {
664
        $this->takeProfit = $takeProfit;
665
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
666
    }
667
668
    /**
669
     * @return float
670
     */
671
    public function getStopLoss(): float
672
    {
673
        return $this->stopLoss;
674
    }
675
676
    /**
677
     * @param float $stopLoss
678
     * @return GetOpenOrdersResponse
679
     */
680
    private function setStopLoss(float $stopLoss): self
681
    {
682
        $this->stopLoss = $stopLoss;
683
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
684
    }
685
686
    /**
687
     * @return string
688
     */
689
    public function getTpslMode(): string
690
    {
691
        return $this->tpslMode;
692
    }
693
694
    /**
695
     * @param string $tpslMode
696
     * @return GetOpenOrdersResponse
697
     */
698
    private function setTpslMode(string $tpslMode): self
699
    {
700
        $this->tpslMode = $tpslMode;
701
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
702
    }
703
704
    /**
705
     * @return float
706
     */
707
    public function getTpLimitPrice(): float
708
    {
709
        return $this->tpLimitPrice;
710
    }
711
712
    /**
713
     * @param float $tpLimitPrice
714
     * @return GetOpenOrdersResponse
715
     */
716
    private function setTpLimitPrice(float $tpLimitPrice): self
717
    {
718
        $this->tpLimitPrice = $tpLimitPrice;
719
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
720
    }
721
722
    /**
723
     * @return float
724
     */
725
    public function getSlLimitPrice(): float
726
    {
727
        return $this->slLimitPrice;
728
    }
729
730
    /**
731
     * @param float $slLimitPrice
732
     * @return GetOpenOrdersResponse
733
     */
734
    private function setSlLimitPrice(float $slLimitPrice): self
735
    {
736
        $this->slLimitPrice = $slLimitPrice;
737
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
738
    }
739
740
    /**
741
     * @return string
742
     */
743
    public function getTpTriggerBy(): string
744
    {
745
        return $this->tpTriggerBy;
746
    }
747
748
    /**
749
     * @param string $tpTriggerBy
750
     * @return GetOpenOrdersResponse
751
     */
752
    private function setTpTriggerBy(string $tpTriggerBy): self
753
    {
754
        $this->tpTriggerBy = $tpTriggerBy;
755
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
756
    }
757
758
    /**
759
     * @return string
760
     */
761
    public function getSlTriggerBy(): string
762
    {
763
        return $this->slTriggerBy;
764
    }
765
766
    /**
767
     * @param string $slTriggerBy
768
     * @return GetOpenOrdersResponse
769
     */
770
    private function setSlTriggerBy(string $slTriggerBy): self
771
    {
772
        $this->slTriggerBy = $slTriggerBy;
773
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
774
    }
775
776
    /**
777
     * @return bool
778
     */
779
    public function isReduceOnly(): bool
780
    {
781
        return $this->reduceOnly;
782
    }
783
784
    /**
785
     * @param bool $reduceOnly
786
     * @return GetOpenOrdersResponse
787
     */
788
    private function setReduceOnly(bool $reduceOnly): self
789
    {
790
        $this->reduceOnly = $reduceOnly;
791
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
792
    }
793
794
    /**
795
     * @return bool
796
     */
797
    public function isCloseOnTrigger(): bool
798
    {
799
        return $this->closeOnTrigger;
800
    }
801
802
    /**
803
     * @param bool $closeOnTrigger
804
     * @return GetOpenOrdersResponse
805
     */
806
    private function setCloseOnTrigger(bool $closeOnTrigger): self
807
    {
808
        $this->closeOnTrigger = $closeOnTrigger;
809
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
810
    }
811
812
    /**
813
     * @return string
814
     */
815
    public function getSmpType(): string
816
    {
817
        return $this->smpType;
818
    }
819
820
    /**
821
     * @param string $smpType
822
     * @return GetOpenOrdersResponse
823
     */
824
    private function setSmpType(string $smpType): self
825
    {
826
        $this->smpType = $smpType;
827
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
828
    }
829
830
    /**
831
     * @return int
832
     */
833
    public function getSmpGroup(): int
834
    {
835
        return $this->smpGroup;
836
    }
837
838
    /**
839
     * @param int $smpGroup
840
     * @return GetOpenOrdersResponse
841
     */
842
    private function setSmpGroup(int $smpGroup): self
843
    {
844
        $this->smpGroup = $smpGroup;
845
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
846
    }
847
848
    /**
849
     * @return string
850
     */
851
    public function getSmpOrderId(): string
852
    {
853
        return $this->smpOrderId;
854
    }
855
856
    /**
857
     * @param string $smpOrderId
858
     * @return GetOpenOrdersResponse
859
     */
860
    private function setSmpOrderId(string $smpOrderId): self
861
    {
862
        $this->smpOrderId = $smpOrderId;
863
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Carpenstar\ByBitAPI\Deri...tOpenOrdersResponseItem which is incompatible with the documented return type Carpenstar\ByBitAPI\Deri...e\GetOpenOrdersResponse.
Loading history...
864
    }
865
}
866