@@ 279-287 (lines=9) @@ | ||
276 | return $this->amount; |
|
277 | } |
|
278 | ||
279 | public function setAmount($amount) |
|
280 | { |
|
281 | if (is_float($amount)) { |
|
282 | $this->amount = round($amount, 2, PHP_ROUND_HALF_UP); |
|
283 | } else { |
|
284 | $this->amount = null; |
|
285 | } |
|
286 | return $this; |
|
287 | } |
|
288 | ||
289 | /** |
|
290 | * Build the BillingFirstName, BillingLastName and BillingPhoneNo nodes |
@@ 88-96 (lines=9) @@ | ||
85 | return $this->amountRedeemed; |
|
86 | } |
|
87 | ||
88 | public function setAmountRedeemed($amount) |
|
89 | { |
|
90 | if (is_float($amount)) { |
|
91 | $this->amountRedeemed = round($amount, 2, PHP_ROUND_HALF_UP); |
|
92 | } else { |
|
93 | $this->amountRedeemed = null; |
|
94 | } |
|
95 | return $this; |
|
96 | } |
|
97 | ||
98 | public function getAmountRedeemedCurrencyCode() |
|
99 | { |
|
@@ 123-131 (lines=9) @@ | ||
120 | return $this->balanceAmount; |
|
121 | } |
|
122 | ||
123 | public function setBalanceAmount($amount) |
|
124 | { |
|
125 | if (is_float($amount)) { |
|
126 | $this->balanceAmount = round($amount, 2, PHP_ROUND_HALF_UP); |
|
127 | } else { |
|
128 | $this->balanceAmount = null; |
|
129 | } |
|
130 | return $this; |
|
131 | } |
|
132 | ||
133 | public function getBalanceAmountCurrencyCode() |
|
134 | { |
@@ 180-188 (lines=9) @@ | ||
177 | return $this->amount; |
|
178 | } |
|
179 | ||
180 | public function setAmount($amount) |
|
181 | { |
|
182 | if (is_float($amount)) { |
|
183 | $this->amount = round($amount, 2, PHP_ROUND_HALF_UP); |
|
184 | } else { |
|
185 | $this->amount = null; |
|
186 | } |
|
187 | return $this; |
|
188 | } |
|
189 | ||
190 | /** |
|
191 | * Name, value pairs of root attributes |