public function __construct($id, $name, $qty, $price, $options = [], $taxable = true, $lineItem = false)
{
$this->id = $id;
$this->qty = $qty;
$this->name = $name;
$this->taxable = $taxable;
$this->lineItem = $lineItem;
$this->price = floatval($price);
$this->tax = config('laracart.tax');
$this->itemModel = config('laracart.item_model', null);
$this->itemModelRelations = config('laracart.item_model_relations', []);
foreach ($options as $option => $value) {
$this->{$option} = $value;
}
}