<?php
namespace App\Galileo\NDCLineParser\Types; class Data_OtherAncillaries extends \App\Galileo\LineParser\Types\GalileoBase { protected $extractRegexp = "/^(?P<rawData>FT-#TAS[0-9]+#DAS\/P[0-9\-\,\.]+\/S[0-9\-\,\.]+\/.+(?!SEAT).+)/"; 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'=>'DAS', 'type'=>'Constant', 'val'=> 'DAS', ], [ 'key'=>'passengerIdentifier', 'type'=>'Constant', 'val'=> '/P', ], [ 'key'=>'passengerIdentifier', 'type'=>'Association', ], [ 'key'=>'segmentNumber', 'type'=>'Constant', 'val'=> '/S', ], [ 'key'=>'segmentNumber', 'type'=>'Association', ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '/', ], [ 'key'=>'serviceName', 'type'=>'StringDelimitedByChar', 'val'=> '/', ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '/', ], [ 'key'=>'unitCost', 'type'=>'Price', ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '/', ], [ 'key'=>'numberOfUnits', 'type'=>'Integer', ], ]; } 