<?php
namespace App\Galileo\StructureParser\Structures\NDCEMD; class Price extends \App\Galileo\StructureParser\Structures\NDCTicketing\Price { protected function _getData() { list($parsedStructure, , $transactionIndexes, ) = $this->getTransactionDetails(); $item = $this->buildPriceObj(); $item->componentAddAndUpdateTotal(new \App\Utils\BaseParser\Structure\StructureParser\Types\PriceComponent( 'supplier', 'NDC:EMD:EMDAmount', $parsedStructure['A14_NDC']['ExtraTransactions'][$transactionIndexes['kx']]['RemarksTransactionReason']['EMDAmount'], null, $parsedStructure['A14_NDC']['ExtraTransactions'][$transactionIndexes['kx']]['RemarksTransactionReason']['EMDCurrencyCode'] )); $item->recalculateTotal($this->transaction)->recomposeTotalCurrency(); $item = $this->populate_commissionFromRemarks($item, $parsedStructure); $item = $this->internal_add_commissionVat($item); $item = $this->populate_formOfPayment($item, $parsedStructure, $transactionIndexes); return $item; } } 