Total Complexity | 6 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class MoneyTransferPremium |
||
15 | { |
||
16 | /** |
||
17 | * @var float |
||
18 | */ |
||
19 | private float $amount; |
||
20 | |||
21 | /** |
||
22 | * @var float |
||
23 | */ |
||
24 | private float $amountLocal; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private string $payer; |
||
30 | |||
31 | /** |
||
32 | * @param float $amount |
||
33 | * @return $this |
||
34 | */ |
||
35 | 1 | public function setAmount(float $amount): self |
|
36 | { |
||
37 | 1 | $this->amount = $amount; |
|
38 | |||
39 | 1 | return $this; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return float |
||
44 | */ |
||
45 | 1 | public function getAmount(): float |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param float $amountLocal |
||
52 | * @return $this |
||
53 | */ |
||
54 | 1 | public function setAmountLocal(float $amountLocal): self |
|
55 | { |
||
56 | 1 | $this->amountLocal = $amountLocal; |
|
57 | |||
58 | 1 | return $this; |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return float |
||
63 | */ |
||
64 | 1 | public function getAmountLocal(): float |
|
65 | { |
||
66 | 1 | return $this->amountLocal; |
|
67 | } |
||
68 | |||
69 | /** |
||
70 | * @param string $payer |
||
71 | * @return $this |
||
72 | */ |
||
73 | 1 | public function setPayer(string $payer): self |
|
78 | } |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 1 | public function getPayer(): string |
|
86 | } |
||
87 | } |
||
88 |