<?php
namespace App\Worldspan\LineParser\Types\Line;

/**
 *
 * @author Lucian Sirbu
 */
class RF extends \App\Worldspan\LineParser\Types\WorldspanBaseLine
{
	protected $extractRegexp = "/^(?P<rawData>F.+)/sm";

	protected $children = [
        /**
         * This record contains the ticket designator and/or tour code and/or tour ticket identifier
         */

        ['key'=> 'key',                               'type'=> 'Constant',          'len'=> 1,                    'val'=> 'F',   'req'=> true,],              // Record identifier
        ['key'=> 'TourCodeInformation',               'type'=> 'StringTrim',        'len'=> 14,                                  'req'=> false,],             // Tour code information
        ['key'=> '#012',                              'type'=> 'Separator',                                                      'req'=> false,],             // Field separator (only sent if followed by identifier)
        ['key'=> 'TourTicketIdentifier',              'type'=> 'StringRaw',            'len'=> 2,                                   'req'=> false,],             // Tour ticket identifier (only sent when present in the PNR)

	];
}
