Total Complexity | 6 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PurchaseRequest extends AbstractParameters implements IPurchaseRequestInterface |
||
10 | { |
||
11 | /** |
||
12 | * Abbreviation of the LT. |
||
13 | * @var string $ltCode |
||
14 | */ |
||
15 | protected string $ltCode; |
||
16 | |||
17 | /** |
||
18 | * Purchase amount |
||
19 | * @var float $ltAmount |
||
20 | */ |
||
21 | protected float $ltAmount; |
||
22 | |||
23 | /** |
||
24 | * Serial number. A kind of unique customised ID |
||
25 | * @var string $serialNo |
||
26 | */ |
||
27 | protected string $serialNo; |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getLtCode(): string |
||
33 | { |
||
34 | return $this->ltCode; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $ltCode |
||
39 | * @return Purchase |
||
40 | */ |
||
41 | public function setLtCode(string $ltCode): self |
||
42 | { |
||
43 | $this->ltCode = $ltCode; |
||
44 | return $this; |
||
|
|||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return float |
||
49 | */ |
||
50 | public function getLtAmount(): float |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param float $ltAmount |
||
57 | * @return Purchase |
||
58 | */ |
||
59 | public function setLtAmount(float $ltAmount): self |
||
60 | { |
||
61 | $this->ltAmount = $ltAmount; |
||
62 | return $this; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getSerialNo(): string |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param string $serialNo |
||
75 | * @return Purchase |
||
76 | */ |
||
77 | public function setSerialNo(string $serialNo): self |
||
81 | } |
||
82 | } |
||
83 |