| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function __construct($orderToken, $product, $productVariant, $quantity) |
||
| 38 | { |
||
| 39 | Assert::string($orderToken, 'Expected order token to be string, got %s'); |
||
| 40 | Assert::string($product, 'Expected product code to be string, got %s'); |
||
| 41 | Assert::string($productVariant, 'Expected product variant code to be string, got %s'); |
||
| 42 | Assert::integer($quantity, 'Expected quantity to be integer, got %s'); |
||
| 43 | Assert::greaterThan($quantity, 0, 'Quantity should be greater than 0'); |
||
| 44 | |||
| 45 | $this->orderToken = $orderToken; |
||
| 46 | $this->product = $product; |
||
| 47 | $this->quantity = $quantity; |
||
| 48 | $this->productVariant = $productVariant; |
||
| 49 | } |
||
| 50 | |||
| 83 |