<?php
namespace App\Amadeus\FileParser; class Line_RIU extends \App\Amadeus\FileParser\Line_FPAbstract { protected $structure = [ [ 'name'=> 'MSGTAG', 'val' => 'RIU', 'type' => 'AN', 'len' => 3,], [ 'name'=> 'INVTRM', 'type' => 'AN', 'len_min' => 1, 'len_max' => 64,], [ 'name'=> 'SEGASS', 'val' => ';S', 'type' => 'ASSOC', ], [ 'name'=> 'PSGASS', 'val' => ';P', 'type' => 'ASSOC', ], ]; protected function postParse() { parent::postParse(); $FP = $this->FP_parse($this->tree['INVTRM'], $this->parser); $this->tree['INVTRM_'] = []; foreach ($FP as $k=>$v){ $this->tree['INVTRM_'][$k] = $v; } } } 