Test Failed
Pull Request — master (#14)
by Vladislav
22:59 queued 14:48
created

ReedemRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Spot\LeverageToken\Redeem\Request;
4
5
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
6
use Carpenstar\ByBitAPI\Spot\LeverageToken\Redeem\Interfaces\IReedemRequestInterface;
7
8
class ReedemRequest extends AbstractParameters implements IReedemRequestInterface
9
{
10
    /**
11
     * Abbreviation of the LT.
12
     * @var string $ltCode
13
     */
14
    protected string $ltCode;
15
16
    /**
17
     * Redeem quantity
18
     * @var float $ltQuantity
19
     */
20
    protected float $ltQuantity;
21
22
    /**
23
     * Serial number. A kind of unique customised ID
24
     * @var string $serialNo
25
     */
26
    protected string $serialNo;
27
28
    /**
29
     * @return string
30
     */
31
    public function getLtCode(): string
32
    {
33
        return $this->ltCode;
34
    }
35
36
    /**
37
     * @param string $ltCode
38
     * @return ReedemRequest
39
     */
40
    public function setLtCode(string $ltCode): self
41
    {
42
        $this->ltCode = $ltCode;
43
        return $this;
44
    }
45
46
    /**
47
     * @return float
48
     */
49
    public function getLtQuantity(): float
50
    {
51
        return $this->ltQuantity;
52
    }
53
54
    /**
55
     * @param float $ltQuantity
56
     * @return ReedemRequest
57
     */
58
    public function setLtQuantity(float $ltQuantity): self
59
    {
60
        $this->ltQuantity = $ltQuantity;
61
        return $this;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getSerialNo(): string
68
    {
69
        return $this->serialNo;
70
    }
71
72
    /**
73
     * @param string $serialNo
74
     * @return ReedemRequest
75
     */
76
    public function setSerialNo(string $serialNo): self
77
    {
78
        $this->serialNo = $serialNo;
79
        return $this;
80
    }
81
}
82