src/Model/Addon.php 1 location
|
@@ 226-234 (lines=9) @@
|
223 |
|
* @param float $vatPercent The VAT percentage. |
224 |
|
* @return $this |
225 |
|
*/ |
226 |
|
public function setVatPercent($vatPercent) |
227 |
|
{ |
228 |
|
if ($vatPercent < 0 || $vatPercent > 100) { |
229 |
|
throw new \InvalidArgumentException('VAT percentage must be between 0-100'); |
230 |
|
} |
231 |
|
$this->vatPercent = $vatPercent; |
232 |
|
|
233 |
|
return $this; |
234 |
|
} |
235 |
|
} |
236 |
|
|
src/Model/ArticleTrait.php 1 location
|
@@ 470-478 (lines=9) @@
|
467 |
|
* @param float $vatPercent The VAT percentage. |
468 |
|
* @return $this |
469 |
|
*/ |
470 |
|
public function setVatPercent($vatPercent) |
471 |
|
{ |
472 |
|
if ($vatPercent < 0 || $vatPercent > 100) { |
473 |
|
throw new \InvalidArgumentException('VAT percentage must be between 0-100'); |
474 |
|
} |
475 |
|
$this->vatPercent = $vatPercent; |
476 |
|
|
477 |
|
return $this; |
478 |
|
} |
479 |
|
|
480 |
|
/** |
481 |
|
* Get the subscription interval. |
src/Model/SubscriptionPlanObject.php 1 location
|
@@ 205-213 (lines=9) @@
|
202 |
|
* @return SubscriptionPlanObject |
203 |
|
* @throws \InvalidArgumentException If the VAT is not between 0 - 100. |
204 |
|
*/ |
205 |
|
public function setVatPercent($vatPercent) |
206 |
|
{ |
207 |
|
if ($vatPercent < 0 || $vatPercent > 100) { |
208 |
|
throw new \InvalidArgumentException('VAT must be between 0 - 100'); |
209 |
|
} |
210 |
|
$this->vatPercent = $vatPercent; |
211 |
|
|
212 |
|
return $this; |
213 |
|
} |
214 |
|
} |
215 |
|
|