$oldValue) { !array_key_exists($name, $response) ?: $this->$name = $response[$name]; } } public function toArray(): array { $has = get_object_vars($this); $response = array(); foreach ($has as $name => $value) { if (gettype($value) === 'object') { $response[$name] = $value->toArray(); } else { $response[$name] = $value; } } return $response; } public function getbillNumber() { return $this->billNumber; } public function setbillNumber($billNumber): void { $this->billNumber = $billNumber; } public function getpurposetrx() { return $this->purposetrx; } public function setpurposetrx($purposetrx): void { $this->purposetrx = $purposetrx; } public function getstorelabel() { return $this->storelabel; } public function setstorelabel($storelabel): void { $this->storelabel = $storelabel; } public function getcustomerlabel() { return $this->customerlabel; } public function setcustomerlabel($customerlabel): void { $this->customerlabel = $customerlabel; } public function getterminalUser() { return $this->terminalUser; } public function setterminalUser($terminalUser): void { $this->terminalUser = $terminalUser; } public function getcore_reference() { return $this->core_reference; } public function setcore_reference($core_reference): void { $this->core_reference = $core_reference; } public function getcustomerPan() { return $this->customerPan; } public function setcustomerPan($customerPan): void { $this->customerPan = $customerPan; } public function getpjsp() { return $this->pjsp; } public function setpjsp($pjsp): void { $this->pjsp = $pjsp; } public function getinvoice_number() { return $this->invoice_number; } public function setinvoice_number($invoice_number): void { $this->invoice_number = $invoice_number; } public function gettransactionDate() { return $this->transactionDate; } public function settransactionDate($transactionDate): void { $this->transactionDate = $transactionDate; } }