Total Complexity | 6 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class ShipmentPriceAmount |
||
15 | { |
||
16 | /** |
||
17 | * @var float |
||
18 | */ |
||
19 | private float $amount; |
||
20 | |||
21 | /** |
||
22 | * @var float|null |
||
23 | */ |
||
24 | private ?float $percent = null; |
||
25 | |||
26 | /** |
||
27 | * @var float |
||
28 | */ |
||
29 | private float $vatPercent; |
||
30 | |||
31 | /** |
||
32 | * @return float |
||
33 | */ |
||
34 | 1 | public function getAmount(): float |
|
35 | { |
||
36 | 1 | return $this->amount; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param float $amount |
||
41 | */ |
||
42 | 1 | public function setAmount(float $amount): void |
|
43 | { |
||
44 | 1 | $this->amount = $amount; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return float|null |
||
49 | */ |
||
50 | 1 | public function getPercent(): ?float |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param float|null $percent |
||
57 | */ |
||
58 | 1 | public function setPercent(?float $percent): void |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return float |
||
65 | */ |
||
66 | 1 | public function getVatPercent(): float |
|
67 | { |
||
68 | 1 | return $this->vatPercent; |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @param float $vatPercent |
||
73 | */ |
||
74 | 1 | public function setVatPercent(float $vatPercent): void |
|
77 | } |
||
78 | } |
||
79 |