<?php
namespace Modules\Orders\ImportOrderFromExternalSystem\Types;

class SystemsList
{
	/**
	 * The internal list of systems
	 * @var array:\Modules\Orders\ImportOrderFromExternalSystem\System
	 */
	protected $systems = [];

	/**
	 * Append a system to the list
	 * @param \Modules\Orders\ImportOrderFromExternalSystem\Types\System $system
	 */
	public function append(\Modules\Orders\ImportOrderFromExternalSystem\Types\System $system)
	{
		$this->systems[] = $system;
	}

	/**
	 * Get the list with all the gathered systems
	 * @return array:\Modules\Orders\ImportOrderFromExternalSystem\System
	 */
	public function getAll()
	{
		return $this->systems;
	}
}

