-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass.Request.php
More file actions
100 lines (85 loc) · 2.31 KB
/
class.Request.php
File metadata and controls
100 lines (85 loc) · 2.31 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
require_once('class.PendingState.php');
date_default_timezone_set("Asia/Colombo");
class Request{
private $id;
private $devEmail;
private $devName;
private $clientEmail;
private $clientName;
private $duration;
private $description;
private $state;
private $timeStamp;
private $clientRating;
private $devRating;
private $requestedTime;
private $projectType;
public function __construct($id,$clientEmail,$clientName,$devEmail,$devName,$duration,$description,$projectType){
$this->id=$id;
$this->devEmail=$devEmail;
$this->devName=$devName;
$this->clientEmail=$clientEmail;
$this->clientName=$clientName;
$this->duration=$duration;
$this->description=$description;
$this->projectType=$projectType;
$this->state=new PendingState();
$this->timeStamp=time();
$this->clientRating="not yet";
$this->devRating="not yet";
//$this->cancelTime=date("t");
$m=date("M");
$d=date("d");
$y=date("Y");
$h=date("H");
$i=date("i");
$this->requestedTime=$m."-".$d."-".$y." at ".$h.":".$i."H";
}
public function getClientName(){
return $this->clientName;
}
public function getClientEmail(){
return $this->clientEmail;
}
public function getDevName(){
return $this->devName;
}
public function getDevEmail(){
return $this->devEmail;
}
public function getDuration(){
return $this->duration;
}
public function getDescription(){
return $this->description;
}
public function getTimeStamp(){
return $this->timeStamp;
}
public function setState($state){
$this->state=$state;
}
public function returnState(){
return $this->state;
}
public function getClientRating(){
return $this->clientRating;
}
public function setClientRating($crating){
$this->clientRating=$crating;
}
public function getDevRating(){
return $this->devRating;
}
public function setDevRating($drating){
$this->devRating=$drating;
}
public function getRTime(){
return $this->requestedTime;
}
public function getRType(){
return $this->projectType;
}
}
?>