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

/**
 *
 * @author Lucian Sirbu
 */
class MD extends \App\Sabre\LineParser\Types\SabreBaseLine
{
	/**
	 * MD – Tour Order Record
	 * The information is present only if the location is using ATB ticket stock and has used the “MISC”
	 * ticketing entries to create all the associated records.
	 */

	/**
	 * Children elements
	 */
	protected $children = [
	    ['key'=>'IUDMID',    'type'=>'Constant',     'len'=>2,       'val'=>'MD',    'label'=>'IUDMID'],    // MESSAGE ID - "MD"
	    ['key'=>'IUDPTY',    'type'=>'StringTrim',    'len'=>2,                       'label'=>'IUDPTY'],    // ASSOCIATED M5 ITEM NUMBER
	    ['key'=>'ICDM1N',    'type'=>'StringTrim',    'len'=>2,                       'label'=>'ICDM1N'],    // ASSOCIATED PASSENGERS
	    ['key'=>'IUDINF',    'type'=>'StringTrim',                                    'label'=>'IUDINF'],    // VARIABLE PTA DATA
	    ['key'=>'NL',        'type'=>'NewLine',],
	];
}
