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

/**
 * Data line
 * @author Lucian Sirbu
 */
class Data_A10Details01 extends \App\Galileo\LineParser\Types\GalileoBase
{
	/**
	 *    The item can be repeated up to 4 times.
	 *    The ticket number consists of 13 numerics and 1 check digit.
	 *    If more than one ticket is being exchanged, then the check digit of the first ticket being exchanged appears.
	 *    The check digits for the following tickets will be blank.
	 *    It is possible for the first ticket to have a “P” character appearing in the check digit position.
	 */

	/**
	 * Children elements
	 */
	protected $children = [
		[ 'key'=>'A10TII',            'type'=>'Constant',  'val'=>'TI:',     'len'=>3,                  'label'=>'TICKET NUMBER' ],
		[ 'key'=>'A10TIT_airline',    'type'=>'StringRaw',                      'len'=>3,                  'label'=>'TICKET NUMBER(airline)' ],
		[ 'key'=>'A10TIT_docNumber',  'type'=>'StringRaw',                      'len'=>10,                 'label'=>'TICKET NUMBER' ],
		[ 'key'=>'A10TIT_checkDigit', 'type'=>'StringRaw',                      'len'=>1,                  'label'=>'TICKET NUMBER(check digit)' ],
		[ 'key'=>'A10TIN',            'type'=>'StringRaw',                      'len'=>[1,4],                  'label'=>'EXCHANGE TICKET COUPON INFORMATION' ],
	];
}
