Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
68 | 8 | public function __construct( |
|
69 | $id, |
||
70 | $description, |
||
71 | $amount, |
||
72 | $quantity = 1, |
||
73 | $shippingCost = null, |
||
74 | $weight = null |
||
75 | ) { |
||
76 | 8 | $this->id = $id; |
|
77 | 8 | $this->description = $description; |
|
78 | 8 | $this->amount = $amount; |
|
79 | 8 | $this->quantity = $quantity; |
|
80 | 8 | $this->shippingCost = $shippingCost; |
|
81 | 8 | $this->weight = $weight; |
|
82 | 8 | } |
|
83 | |||
132 |