<?php
namespace App\Amadeus\FileParser;

class Line_FOI extends \App\Amadeus\FileParser\LineAbstract
{
	/**
	 * 4.105. FOI Form of Identification - FOID
	 * see page 279(321)
	 *
	 * This line item is used to transmit FOID Form of Identification information.
	 */
	protected $structure = [
		['name'=> 'FOICDE',  'val' => 'FOI',   'type' => 'AN',      'req' => 'M',  'len' => 3,],                          // 1 : Form if Identification Code (Constant value of 'FOI')
		['name'=> 'DELIM',   'val' => ' ',     'type' => 'AN',      'req' => 'M',  'len' => 1,],                          // 2 : Delimiter (Constant value of blank)
		['name'=> 'AIRCDE',                    'type' => 'S:trim',  'req' => 'M',  'len' => 4,],                          // 3 : Airline Code.
		['name'=> 'FOID',    'val' => 'FOID',  'type' => 'AN',      'req' => 'M',  'len' => 4,],                          // 5 : Form of Identification Code (Constant Value of 'FOID')
		['name'=> 'DELIM',   'val' => '-',     'type' => 'AN',      'req' => 'M',  'len' => 1,],                          // 6 : Delimiter (Constant value of '-'Dash)
		['name'=> 'FREE',                      'type' => 'AN',      'req' => 'M',  'len_min' => 1,   'len_max' => 112,],  // 7 : Form of Identification data. For FOID there will be '/' separating multiple types of ID.
		['name'=> 'PSGASS',  'val' => ';P',    'type' => 'ASSOC',],
	];
}
