<?php
namespace App\Galileo\NDCLineParser\Types; class Data_Fees extends \App\Galileo\LineParser\Types\GalileoBase { protected $extractRegexp = "/^(?P<rawData>FT-#TAS[0-9]+#FEE[0-9\.]+\/.+)/"; 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'=>'FEE', 'type'=>'Constant', 'val'=> 'FEE', ], [ 'key'=>'baseFare', 'type'=>'Price', ], [ 'key'=>'separator', 'type'=>'Constant', 'val'=> '/', ], [ 'key'=>'taxCode', 'type'=>'StringTrim', 'len'=>2, ], [ 'key'=>'taxAmount', 'type'=>'Price', ], ]; } 