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

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

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