purchaseState = $purchaseState; $this->order = $order; $this->idPos = $idPos; $this->isOrderNew = $isOrderNew; } public function getPurchaseState(): PurchaseState { return $this->purchaseState; } public function getOrder(): ?\Order { return $this->order; } public function setOrder(\Order $order): void { $this->order = $order; } public function getIdPos(): int { return $this->idPos; } public function isOrderNew(): bool { return $this->isOrderNew; } }