Total Complexity | 7 |
Total Lines | 79 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ReedemRequest extends AbstractParameters implements IReedemRequestInterface |
||
8 | { |
||
9 | /** |
||
10 | * Abbreviation of the LT. |
||
11 | * @var string $ltCode |
||
12 | */ |
||
13 | protected string $ltCode; |
||
14 | |||
15 | /** |
||
16 | * Redeem quantity |
||
17 | * @var float $ltQuantity |
||
18 | */ |
||
19 | protected float $ltQuantity; |
||
20 | |||
21 | /** |
||
22 | * Serial number. A kind of unique customised ID |
||
23 | * @var string $serialNo |
||
24 | */ |
||
25 | protected string $serialNo; |
||
26 | |||
27 | public function __construct() |
||
28 | { |
||
29 | $this |
||
30 | ->setRequiredField('ltCode') |
||
31 | ->setRequiredField('ltQuantity'); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getLtCode(): string |
||
38 | { |
||
39 | return $this->ltCode; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $ltCode |
||
44 | * @return ReedemRequest |
||
45 | */ |
||
46 | public function setLtCode(string $ltCode): self |
||
47 | { |
||
48 | $this->ltCode = $ltCode; |
||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return float |
||
54 | */ |
||
55 | public function getLtQuantity(): float |
||
56 | { |
||
57 | return $this->ltQuantity; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param float $ltQuantity |
||
62 | * @return ReedemRequest |
||
63 | */ |
||
64 | public function setLtQuantity(float $ltQuantity): self |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getSerialNo(): string |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * @param string $serialNo |
||
80 | * @return ReedemRequest |
||
81 | */ |
||
82 | public function setSerialNo(string $serialNo): self |
||
86 | } |
||
87 | } |