<?php
namespace App\Amadeus\FileParser; class Line_TFC extends \App\Amadeus\FileParser\LineAbstract { protected $structure = [ ['name'=> 'MSGTAG', 'val' => 'TFC', 'type' => 'AN', 'req' => 'M', 'len' => 3,], ['name'=> 'DELIM', 'val' => ';', 'type' => 'AN', 'req' => 'M', 'len' => 1,], ['name' => 'TCINFO', 'type' =>'composite', 'rep_min' =>1, 'rep_max' =>150, 'childs' => [ ['name'=> 'fld', 'type' => 'AN',], ['name'=> 'DELIM', 'val' => '+', 'type' => 'AN', 'len' => 1,], ]], ]; protected function postParse() { parent::postParse(); $this->tree['TCINFO'] = self::rtrimArr($this->tree['TCINFO']); } } 