<?php
namespace App\Worldspan\LineParser\Types\Line; class R04 extends \App\Worldspan\LineParser\Types\WorldspanBaseLine { protected $extractRegexp = "/^(?P<rawData>(0|\*)4.+)/sm"; protected $children = [ ['key'=> 'RecordIdentifier', 'type'=> 'StringRaw', 'len'=> 1, 'req'=> false,], ['key'=> 'key', 'type'=> 'Constant', 'len'=> 2, 'val'=> '4\\', 'req'=> true,], ['key'=> 'FareBasisCodeTicketDesignator', 'type'=> 'StringDelimitedByChar', 'len'=> [0, 15], 'val'=> '\\', 'req'=> false,], ['key'=> '#020', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'NotValidBeforeDate', 'type'=> 'Date', 'len'=> 5, 'fmt'=> 'DDMMM', 'req'=> false, 'ref'=>'BookingDateAndYear', 'onlyFuture'=>true,], ['key'=> '#022', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'NotValidAfterDate', 'type'=> 'Date', 'len'=> 5, 'fmt'=> 'DDMMM', 'req'=> false,], ['key'=> '#024', 'type'=> 'Separator', 'req'=> false, 'ref'=>'BookingDateAndYear', 'onlyFuture'=>true,], ['key'=> 'SteatStatus', 'type'=> 'StringDelimitedByChar', 'val'=> '\\', 'req'=> true,], ['key'=> '#026', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'complex:12', 'type'=> 'Complex', 'merge'=>true, 'req'=> false, 'children'=> [ ['key'=> 'key', 'type'=> 'Constant', 'len'=> 3, 'val'=> 'BG-', 'req'=> true,], ['key'=> 'BaggageAllowance', 'type'=> 'StringDelimitedByChar', 'len'=> [0, 3], 'val'=> '\\', 'req'=> false,], ]], ['key'=> '#029', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'complex:14', 'type'=> 'Complex', 'merge'=>true, 'req'=> false, 'children'=> [ ['key'=> 'key', 'type'=> 'Constant', 'len'=> 2, 'val'=> 'E-', 'req'=> true,], ]], ['key'=> '#031', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'key', 'type'=> 'Constant', 'len'=> 3, 'val'=> 'BP-', 'req'=> false,], ['key'=> 'BookingPaymentAmount', 'type'=> 'StringRaw', 'len'=> [0, 6], 'req'=> false,], ]; } 