| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function __construct($orderToken, $product, $quantity) |
||
| 30 | { |
||
| 31 | Assert::string($orderToken, 'Expected order token to be string, got %s'); |
||
| 32 | Assert::string($product, 'Expected product code to be string, got %s'); |
||
| 33 | Assert::integer($quantity, 'Expected quantity to be integer, got %s'); |
||
| 34 | Assert::greaterThan($quantity, 0, 'Quantity should be greater than 0'); |
||
| 35 | |||
| 36 | $this->orderToken = $orderToken; |
||
| 37 | $this->product = $product; |
||
| 38 | $this->quantity = $quantity; |
||
| 39 | } |
||
| 40 | |||
| 65 |