item = new NullItem(); $this->itemsalesgroup = new NullAttributeValue(); $this->itemproductgroup = new NullAttributeValue(); $this->itemsegment = new NullAttributeValue(); $this->itemsection = new NullAttributeValue(); $this->itemtype = new NullAttributeValue(); $this->client = new NullClient(); $this->clientgroup = new NullAttributeValue(); $this->clientsegment = new NullAttributeValue(); $this->clientsection = new NullAttributeValue(); $this->clienttype = new NullAttributeValue(); $this->supplier = new NullSupplier(); $this->price = new FloatInt(); $this->quantity = new FloatInt(); $this->priceNew = new FloatInt(); $this->discount = new FloatInt(); $this->discountPercentage = new FloatInt(); $this->bonus = new FloatInt(); } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }