| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 14 | public function __construct($id, $quantity, $productTaxCode, $unitPrice, $discount) |
|
| 42 | { |
||
| 43 | 14 | Assert::integer($quantity); |
|
| 44 | 14 | Assert::float($unitPrice); |
|
| 45 | 14 | Assert::float($discount); |
|
| 46 | |||
| 47 | 14 | $this->id = $id; |
|
| 48 | 14 | $this->quantity = $quantity; |
|
| 49 | 14 | $this->productTaxCode = $productTaxCode; |
|
| 50 | 14 | $this->unitPrice = $unitPrice; |
|
| 51 | 14 | $this->discount = $discount; |
|
| 52 | 14 | } |
|
| 53 | |||
| 105 |