<?php
namespace App\Worldspan\LineParser\Types\Line; class RE extends \App\Worldspan\LineParser\Types\WorldspanBaseLine { protected $extractRegexp = "/^(?P<rawData>E.+)/sm"; protected $children = [ [ 'key'=> 'key', 'type'=> 'Constant', 'len'=> 1, 'val'=> 'E', 'req'=> true, ], [ 'key'=> 'EndorsementRestrictionInformation', 'type'=> 'StringRaw', 'len'=> [0, 147], 'req'=> true, ], ]; protected function postExtract(\App\Utils\BaseParser\TextParser\ExtractedBlock $ret) { if ($ret->extractedData['EndorsementRestrictionInformation']) { $ret->extractedData['EndorsementRestrictionInformation_'] = array_filter(explode("//", $ret->extractedData['EndorsementRestrictionInformation'])); } return $ret; } } 