<?php
namespace App\Bsp\Settlement;

/**
 * One specific result
 * Used as part of CompareWithImportedServiceResults
 * @author Lucian Sirbu
 */
class CompareWithImportedServiceResult
{
	use CompareResultTrait;
	/**
	 * Gathered details list
	 * @var array
	 */
	public $details = [];

	/**
	 * The result in the ImportedOrder section
	 * @var mixed
	 */
	public $importedService = null;

	/**
	 * The result in the BSP section
	 * @var mixed
	 */
	public $bspRow = null;

	/**
	 * Get the first internal data that actually has data
	 * @return mixed
	 */
	public function getAny()
	{
		return ($this->importedService?:$this->bspRow);
	}

}
