<?php
namespace Modules\Orders\Worldspan\Collector\Model\Filters; class StructureParser extends \ModulesAbstract\ImportedOrdersFileManager\Model\Filters\StructureParserCachedAbstract { protected function getTransactions($fileFullPath) { $fileParser = new \App\Worldspan\FileParser\TAIR(); $fileParser->setMessagesCollector(new \App\MessagesCollector()); $fileParser->setRawData(\Engine\File::getContents($fileFullPath)); $fileParser->extract(); $processor = new \App\Worldspan\StructureParser\Processor($fileParser); $processor->initialize(); $processor->setFile($fileFullPath); $sortedTransactions = $processor->getSortedTransactions(); return $sortedTransactions; } }