<?php
namespace App\Galileo\NDCLineParser\Types; class Data_REFLCC extends \App\Galileo\LineParser\Types\GalileoBase { protected $extractRegexp = "/^(?P<rawData>FT-#TAS[0-9]+#REF.+)/"; protected $useCustomRegexp = true; protected $children = [ [ 'key'=>'FT', 'type'=>'Constant', 'val'=> 'FT-', 'label'=>'DOCI-FREETEXT-#' ], [ 'key'=>'TAS', 'type'=>'Constant', 'val'=> '#TAS', ], [ 'key'=>'fareNumber', 'type'=>'Integer', 'len'=>2, ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '#', ], [ 'key'=>'REF', 'type'=>'Constant', 'val'=> 'REF', ], [ 'key'=>'airlineCode', 'type'=>'StringTrim', 'len'=>2, ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '/', ], [ 'key'=>'RECLOC', 'type'=>'StringDelimitedByChar', 'val'=> '/' ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '/', ], [ 'key'=>'currency', 'type'=>'StringDelimitedByChar', 'val'=> '/' ], ]; } 