<?php
namespace App\Amadeus\FileParser; class Line_ETK extends \App\Amadeus\FileParser\LineAbstract { protected $structure = [ ['name'=> 'MSGTAG', 'val' => 'ETK-I', 'type' => 'AN', 'req' => 'M', 'len' => 5,], ['name'=> '_extra', 'type' => 'AN',], ]; public function parse() { $this->tree['_extra'] = substr($this->content, $this->structure[0]['len']); $this->postParse(); return $this; } } 