RequestAbstractClass.php 718 Bytes
<?php

/**
 * @class RequestAbstractClass
 * @brief Abstract class that's define a request
 * @details
 */
abstract class RequestAbstractClass
{
	protected $requestData = null;

	/*
	 * @brief Constructor
	*/
	function __construct($userHost)
	{
		KernelConfigClass::setUserHost($userHost);
	}

	/*
	 * @brief Get request data
	*/
	public function getData()
	{
		return $this->requestData;
	}

	/*
	 * @brief Set request data
	*/
	public function setData($data)
	{
		$this->requestData = $data;
	}

	/*
	 * @brief Abstract method to init request
	*/
	abstract public function init();

	/*
	 * @brief Abstract method to run request
	*/
	abstract public function run();
}
?>