Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | private function __construct(string $price, string $currency, string $quantity, string $unit) |
||
22 | { |
||
23 | if ($quantity < 0) { |
||
24 | throw new \InvalidArgumentException('Quantity of the progressive price threshold must be positive'); |
||
25 | } |
||
26 | |||
27 | $this->price = $price; |
||
28 | $this->currency = $currency; |
||
29 | $this->quantity = $quantity; |
||
30 | $this->unit = $unit; |
||
31 | } |
||
69 |