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

/**
 * Data line
 * @author Lucian Sirbu
 */
class Data_A16AO1 extends \App\Galileo\LineParser\Types\GalileoBase
{
	/**
	 * Children elements
	 */
	protected $children = [
		[ 'key'=>'A16O1C',  'type'=>'Constant', 'len'=>3, 'val'=>'O1-',  'label'=>'OPTIONAL DATA IDENTIFIER "OD-"' ],
		[ 'key'=>'A16O1',  'type'=>'StringRaw',                         'label'=>'OPTIONAL DATA' ],
	];

	protected function postExtract(\App\Utils\BaseParser\TextParser\ExtractedBlock $ret)
	{
		$ret->extractedData['A16O1_'] = Utils\OptionalData::extractKnownFields($ret->extractedData['A16O1']);
		return $ret;
	}
}
