id = array_key_exists('id', $data) ? $data['id'] : $this->id; $this->petId = array_key_exists('petId', $data) ? $data['petId'] : $this->petId; $this->quantity = array_key_exists('quantity', $data) ? $data['quantity'] : $this->quantity; $this->shipDate = array_key_exists('shipDate', $data) ? $data['shipDate'] : $this->shipDate; $this->status = array_key_exists('status', $data) ? $data['status'] : $this->status; $this->complete = array_key_exists('complete', $data) ? $data['complete'] : $this->complete; } } /** * Gets id. * * @return int|null */ public function getId(): ?int { return $this->id; } /** * Sets id. * * @param int|null $id * * @return $this */ public function setId(?int $id = null): self { $this->id = $id; return $this; } /** * Gets petId. * * @return int|null */ public function getPetId(): ?int { return $this->petId; } /** * Sets petId. * * @param int|null $petId * * @return $this */ public function setPetId(?int $petId = null): self { $this->petId = $petId; return $this; } /** * Gets quantity. * * @return int|null */ public function getQuantity(): ?int { return $this->quantity; } /** * Sets quantity. * * @param int|null $quantity * * @return $this */ public function setQuantity(?int $quantity = null): self { $this->quantity = $quantity; return $this; } /** * Gets shipDate. * * @return \DateTime|null */ public function getShipDate(): ?\DateTime { return $this->shipDate; } /** * Sets shipDate. * * @param \DateTime|null $shipDate * * @return $this */ public function setShipDate(?\DateTime $shipDate = null): self { $this->shipDate = $shipDate; return $this; } /** * Gets status. * * @return string|null */ public function getStatus(): ?string { return $this->status; } /** * Sets status. * * @param string|null $status Order Status * * @return $this */ public function setStatus(?string $status = null): self { $this->status = $status; return $this; } /** * Gets complete. * * @return bool|null */ public function isComplete(): ?bool { return $this->complete; } /** * Sets complete. * * @param bool|null $complete * * @return $this */ public function setComplete(?bool $complete = null): self { $this->complete = $complete; return $this; } }