Blame view

src/Request/RequestAbstractClass.php 767 Bytes
22521f1c   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

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

	/*
	 * @brief Constructor
	*/
87a28122   Elena.Budnik   create app.user.n...
15
	function __construct($user, $userHost)
22521f1c   Benjamin Renard   First commit
16
17
	{
		KernelConfigClass::setUserHost($userHost);
87a28122   Elena.Budnik   create app.user.n...
18
		KernelConfigClass::setUserName($user);
22521f1c   Benjamin Renard   First commit
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
47
	}

	/*
	 * @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();
}
?>