Blame view

src/Request/RequestAbstractClass.php 718 Bytes
22521f1c   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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();
}
?>