<?php
namespace App\Amadeus\FileParser; class Line_N extends \App\Amadeus\FileParser\LineAbstract { protected $structure = [ ['name'=> 'MSGTAG', 'val' => 'N-', 'type' => 'AN', 'req' => 'M', 'len' => 2,], ['name'=> 'CURRTYP', 'type' => 'AN', 'req' => 'M', 'len' => 3,], ['name' => 'FARESEG', 'type' =>'composite', 'rep_min' =>0, 'rep_max' =>28, 'childs' => [ ['name'=> 'BASE', 'type' => 'AN',], ['name'=> 'DELIM', 'val' => ';', 'type' => 'AN', 'req' => 'M', 'len' => 1,], ]]]; protected function postParse() { parent::postParse(); if($this->tree['FARESEG']){ $this->tree['FARESEG'] = self::rtrimArr($this->tree['FARESEG']); } } } 