<?php
namespace App\Utils\BaseParser\Structure\StructureParser\Structures; abstract class TransactionRefundDistribuited extends Transaction { public $documents = null; public $itinerary = null; public $passengers = null; public $price = null; public $supplier = null; public $agent = null; public $relations = null; public $remarks = null; public $extraData = null; protected $refundRaw = null; protected $amountTotal = null; protected $amountRemaining = null; protected $servicesTotalCount = null; protected $thisServiceIdx = null; protected $refundableServices = []; protected $referenceService = null; public function _getSerializedRepresentation(&$serializedObjects) { $tmpKeys = ['refundRaw', 'amountTotal', 'amountRemaining', 'servicesTotalCount', 'thisServiceIdx', 'refundableServices', 'referenceService',]; $tmpData = array_combine($tmpKeys, array_fill(0, count($tmpKeys), null)); foreach ($tmpKeys as $key) { $tmpData[$key] = $this->{$key}; $this->{$key} = null; } $ret = parent::_getSerializedRepresentation($serializedObjects); foreach ($tmpKeys as $key) { $this->{$key} = $tmpData[$key]; $tmpData[$key] = null; } return $ret; } public function setRefundRaw($refundRaw) { $this->refundRaw = $refundRaw; return $this; } public function getRefundRaw() { return $this->refundRaw; } public function setReferenceService($referenceService) { $this->referenceService = $referenceService; return $this; } public function getReferenceService() { return $this->referenceService; } public function setServiceIndex($thisServiceIdx) { $this->thisServiceIdx = $thisServiceIdx; return $this; } public function getServiceIndex() { return $this->thisServiceIdx; } public function setRefundableServicesList($refundableServices) { $this->refundableServices = $refundableServices; $this->servicesTotalCount = count($refundableServices); return $this; } public function getServicesCount() { return $this->servicesTotalCount; } public function setAmounts($amountTotal, $amountRemaining) { $this->amountTotal = $amountTotal; $this->amountRemaining = $amountRemaining; return $this; } public function getAmounts() { return [$this->amountTotal, $this->amountRemaining,]; } }