singleListPriceNet = new Money(); $this->singleListPriceGross = new Money(); $this->totalListPriceNet = new Money(); $this->totalListPriceGross = new Money(); $this->singleSalesPriceNet = new Money(); $this->singleSalesPriceGross = new Money(); $this->totalSalesPriceNet = new Money(); $this->totalSalesPriceGross = new Money(); $this->singlePurchasePriceNet = new Money(); $this->singlePurchasePriceGross = new Money(); $this->totalPurchasePriceNet = new Money(); $this->totalPurchasePriceGross = new Money(); $this->singleProfitNet = new Money(); $this->singleProfitGross = new Money(); $this->totalProfitNet = new Money(); $this->totalProfitGross = new Money(); } /** * Get id. * * @return int Model id * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Set item. * * @param int $item Item * * @return void * * @since 1.0.0 */ public function setItem(int $item) : void { $this->item = $item; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'order' => $this->order, 'item' => $this->item, 'itemNumber' => $this->itemNumber, 'itemName' => $this->itemName, 'itemDescription' => $this->itemDescription, 'quantity' => $this->quantity, 'bill' => $this->bill, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }