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 |
|
|
src/Model/Addon.php 1 location
|
@@ 228-236 (lines=9) @@
|
225 |
|
* @return $this |
226 |
|
* @throws \InvalidArgumentException If the percent is not between 0 and 100 |
227 |
|
*/ |
228 |
|
public function setVatPercent($vatPercent) |
229 |
|
{ |
230 |
|
if ($vatPercent < 0 || $vatPercent > 100) { |
231 |
|
throw new \InvalidArgumentException('VAT percentage must be between 0-100'); |
232 |
|
} |
233 |
|
$this->vatPercent = $vatPercent; |
234 |
|
|
235 |
|
return $this; |
236 |
|
} |
237 |
|
} |
238 |
|
|
src/Model/ArticleTrait.php 1 location
|
@@ 471-479 (lines=9) @@
|
468 |
|
* @return $this |
469 |
|
* @throws \InvalidArgumentException If the percent is not between 0 and 100 |
470 |
|
*/ |
471 |
|
public function setVatPercent($vatPercent) |
472 |
|
{ |
473 |
|
if ($vatPercent < 0 || $vatPercent > 100) { |
474 |
|
throw new \InvalidArgumentException('VAT percentage must be between 0-100'); |
475 |
|
} |
476 |
|
$this->vatPercent = $vatPercent; |
477 |
|
|
478 |
|
return $this; |
479 |
|
} |
480 |
|
|
481 |
|
/** |
482 |
|
* Get the subscription interval. |