<?php
namespace App\Amadeus\FileParser;

/**
 * seems that the RIR line can contain ';', so we need a custom parser in here
 * @see RO/J'Info/2012-11-09_135737_89.149.8.211__@0900010.NOV
 *
 * Use the Line_RM parser, because it already has a flexible parser written
 */
class Line_RIR extends \App\Amadeus\FileParser\Line_RM
{
	/**
	 * 4.162. RIR Itinerary Remark
	 * see page 389(431)
	 *
	 * The RIR Itinerary Remark is used to print a free flow remark on an Itinerary.
	 */
	protected $structure = [
		['name'=> 'MSGTAG',  'val' => 'RIR',   'type' => 'AN',      'req' => 'M',  'len' => 3,],                          // 1 : Message Tag (RIR)
		['name'=> 'INTRM',                     'type' => 'AN',      'req' => 'M',  'len_min' => 1,   'len_max' => 64,],   // 2 : Itinerary Remarks
		['name'=> 'SEGASS',  'val' => ';S',    'type' => 'ASSOC',],
		['name'=> 'PSGASS',  'val' => ';P',    'type' => 'ASSOC',],
	];
}
