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

/**
 *
 * @author Lucian Sirbu
 */
class M7ASP extends \App\Sabre\LineParser\Types\SabreBaseLine
{
	/**
	 * ASSOCIATION INFORMATION
	 * This field will be included when the value of IU0F0D is ‘1’ and the remark is associated.
	 * It will indicate the M1 passenger record(s) to which this remark is associated.
	 * E.g. M101, M101M102
	 * The last item is followed by a Carriage Return.
	 *
	 * When the remark is not passenger associated, this field will contain a single carriage return
	 */

	/**
	 * Children elements
	 */
	protected $children = [
		['key'=>'IU7ASP', 	                  'req' =>false,      'rep'=> [1, PHP_INT_MAX],  'children' => [
		    ['key'=>'IU7ASP_HDR',    'type'=>'Constant',     'len'=>2,       'val'=>'M1', 'label'=>'IU7ASP_HDR'],
		    ['key'=>'IU7ASP_PSG',    'type'=>'Digits',    'len'=>2,                       'label'=>'IU7ASP_PSG'],
		]],
	    ['key'=>'NL',        'type'=>'NewLine', 'req' =>false,],
	];
}
