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