<?php
namespace App\Galileo\LineParser\Types;

/**
 * Data line
 * @author Lucian Sirbu
 */
class Data_A17TR extends \App\Galileo\LineParser\Types\GalileoBase
{
	/**
	 * TRANSPORTATION ITEM
	 */

	/**
	 * Children elements
	 */
	protected $children = [
		[ 'key'=>'A17SEG',  'header'=>'TR:',    'type'=>'Integer',  'len'=>2, 'label'=>'LEISURESHOPPER SEGMENT NUMBER' ],
		[ 'key'=>'A17ISD',                      'type'=>'Date',     'len'=>7, 'label'=>'TRANSPORTATION START DATE' ],
		[ 'key'=>'A17QTY',                      'type'=>'Integer',  'len'=>3, 'label'=>'NUMBER OF PASSENGERS' ],
		[ 'key'=>'A17DCI',                      'type'=>'Integer',  'len'=>1, 'label'=>'DATE CHANGE INDICATOR' ],
		[ 'key'=>'A17DPC',                      'type'=>'Letters',  'len'=>5, 'label'=>'DEPARTURE CITY' ],
		[ 'key'=>'A17ARC',                      'type'=>'Letters',  'len'=>5, 'label'=>'ARRIVAL CITY' ],
		[ 'key'=>'A17TYP',                      'type'=>'Letters',  'len'=>1, 'label'=>'TRANSPORTATION TYPE' ],
		[ 'key'=>'A17ACC',                      'type'=>'StringRaw',   'len'=>3, 'label'=>'CARRIER CODE' ],
		[ 'key'=>'A17TPN',                      'type'=>'StringRaw',   'len'=>5, 'label'=>'TRANSPORTATION NUMBER' ],
		[ 'key'=>'A17CLS',                      'type'=>'StringRaw',   'len'=>2, 'label'=>'CLASS OF SERVICE' ],
		[ 'key'=>'A17EQP',                      'type'=>'StringRaw',   'len'=>4, 'label'=>'EQUIPMENT CODE' ],
		[ 'key'=>'A17MEL',                      'type'=>'Letters',  'len'=>1, 'label'=>'MEAL CODE' ],
		[ 'key'=>'A17NOS',                      'type'=>'Integer',  'len'=>1, 'label'=>'NUMBER OF STOPS' ],
		[ 'key'=>'A17DPT',                      'type'=>'StringRaw',   'len'=>5, 'label'=>'DEPARTURE TIME' ],
		[ 'key'=>'A17ART',                      'type'=>'StringRaw',   'len'=>5, 'label'=>'ARRIVAL TIME' ],
	];
}
