|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* For licensing terms, see /license.txt */ |
|
4
|
|
|
|
|
5
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
6
|
|
|
|
|
7
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
8
|
|
|
|
|
9
|
|
|
/** |
|
10
|
|
|
* Project. |
|
11
|
|
|
* |
|
12
|
|
|
* @ORM\Table(name="ticket_project") |
|
13
|
|
|
* @ORM\Entity |
|
14
|
|
|
*/ |
|
15
|
|
|
class TicketProject |
|
16
|
|
|
{ |
|
17
|
|
|
/** |
|
18
|
|
|
* @var int |
|
19
|
|
|
* |
|
20
|
|
|
* @ORM\Column(name="id", type="integer") |
|
21
|
|
|
* @ORM\Id |
|
22
|
|
|
* @ORM\GeneratedValue |
|
23
|
|
|
*/ |
|
24
|
|
|
protected $id; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @var string |
|
28
|
|
|
* |
|
29
|
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=false) |
|
30
|
|
|
*/ |
|
31
|
|
|
protected $name; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @var string |
|
35
|
|
|
* |
|
36
|
|
|
* @ORM\Column(name="description", type="text", nullable=true) |
|
37
|
|
|
*/ |
|
38
|
|
|
protected $description; |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* @var string |
|
42
|
|
|
* |
|
43
|
|
|
* @ORM\Column(name="email", type="string", nullable=true) |
|
44
|
|
|
*/ |
|
45
|
|
|
protected $email; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @var string |
|
49
|
|
|
* |
|
50
|
|
|
* @ORM\Column(name="other_area", type="integer", nullable=true) |
|
51
|
|
|
*/ |
|
52
|
|
|
protected $otherArea; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @var int |
|
56
|
|
|
* |
|
57
|
|
|
* @ORM\Column(name="sys_insert_user_id", type="integer", nullable=false, unique=false) |
|
58
|
|
|
*/ |
|
59
|
|
|
protected $insertUserId; |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* @var \DateTime |
|
63
|
|
|
* |
|
64
|
|
|
* @ORM\Column(name="sys_insert_datetime", type="datetime", nullable=false, unique=false) |
|
65
|
|
|
*/ |
|
66
|
|
|
protected $insertDateTime; |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @var int |
|
70
|
|
|
* |
|
71
|
|
|
* @ORM\Column(name="sys_lastedit_user_id", type="integer", nullable=true, unique=false) |
|
72
|
|
|
*/ |
|
73
|
|
|
protected $lastEditUserId; |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* @var \DateTime |
|
77
|
|
|
* |
|
78
|
|
|
* @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false) |
|
79
|
|
|
*/ |
|
80
|
|
|
protected $lastEditDateTime; |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* Project constructor. |
|
84
|
|
|
*/ |
|
85
|
|
|
public function __construct() |
|
86
|
|
|
{ |
|
87
|
|
|
$this->insertDateTime = new \DateTime(); |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @return int |
|
92
|
|
|
*/ |
|
93
|
|
|
public function getId() |
|
94
|
|
|
{ |
|
95
|
|
|
return $this->id; |
|
96
|
|
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* @return string |
|
100
|
|
|
*/ |
|
101
|
|
|
public function getName() |
|
102
|
|
|
{ |
|
103
|
|
|
return $this->name; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* @param string $name |
|
108
|
|
|
* |
|
109
|
|
|
* @return TicketProject |
|
110
|
|
|
*/ |
|
111
|
|
|
public function setName($name) |
|
112
|
|
|
{ |
|
113
|
|
|
$this->name = $name; |
|
114
|
|
|
|
|
115
|
|
|
return $this; |
|
116
|
|
|
} |
|
117
|
|
|
|
|
118
|
|
|
/** |
|
119
|
|
|
* @return string |
|
120
|
|
|
*/ |
|
121
|
|
|
public function getDescription() |
|
122
|
|
|
{ |
|
123
|
|
|
return $this->description; |
|
124
|
|
|
} |
|
125
|
|
|
|
|
126
|
|
|
/** |
|
127
|
|
|
* @param string $description |
|
128
|
|
|
* |
|
129
|
|
|
* @return TicketProject |
|
130
|
|
|
*/ |
|
131
|
|
|
public function setDescription($description) |
|
132
|
|
|
{ |
|
133
|
|
|
$this->description = $description; |
|
134
|
|
|
|
|
135
|
|
|
return $this; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
/** |
|
139
|
|
|
* @return string |
|
140
|
|
|
*/ |
|
141
|
|
|
public function getEmail() |
|
142
|
|
|
{ |
|
143
|
|
|
return $this->email; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* @param string $email |
|
148
|
|
|
* |
|
149
|
|
|
* @return TicketProject |
|
150
|
|
|
*/ |
|
151
|
|
|
public function setEmail($email) |
|
152
|
|
|
{ |
|
153
|
|
|
$this->email = $email; |
|
154
|
|
|
|
|
155
|
|
|
return $this; |
|
156
|
|
|
} |
|
157
|
|
|
|
|
158
|
|
|
/** |
|
159
|
|
|
* @return string |
|
160
|
|
|
*/ |
|
161
|
|
|
public function getOtherArea() |
|
162
|
|
|
{ |
|
163
|
|
|
return $this->otherArea; |
|
164
|
|
|
} |
|
165
|
|
|
|
|
166
|
|
|
/** |
|
167
|
|
|
* @param string $otherArea |
|
168
|
|
|
* |
|
169
|
|
|
* @return TicketProject |
|
170
|
|
|
*/ |
|
171
|
|
|
public function setOtherArea($otherArea) |
|
172
|
|
|
{ |
|
173
|
|
|
$this->otherArea = $otherArea; |
|
174
|
|
|
|
|
175
|
|
|
return $this; |
|
176
|
|
|
} |
|
177
|
|
|
|
|
178
|
|
|
/** |
|
179
|
|
|
* @return int |
|
180
|
|
|
*/ |
|
181
|
|
|
public function getInsertUserId() |
|
182
|
|
|
{ |
|
183
|
|
|
return $this->insertUserId; |
|
184
|
|
|
} |
|
185
|
|
|
|
|
186
|
|
|
/** |
|
187
|
|
|
* @param int $insertUserId |
|
188
|
|
|
* |
|
189
|
|
|
* @return TicketProject |
|
190
|
|
|
*/ |
|
191
|
|
|
public function setInsertUserId($insertUserId) |
|
192
|
|
|
{ |
|
193
|
|
|
$this->insertUserId = $insertUserId; |
|
194
|
|
|
|
|
195
|
|
|
return $this; |
|
196
|
|
|
} |
|
197
|
|
|
|
|
198
|
|
|
/** |
|
199
|
|
|
* @return \DateTime |
|
200
|
|
|
*/ |
|
201
|
|
|
public function getInsertDateTime() |
|
202
|
|
|
{ |
|
203
|
|
|
return $this->insertDateTime; |
|
204
|
|
|
} |
|
205
|
|
|
|
|
206
|
|
|
/** |
|
207
|
|
|
* @param \DateTime $insertDateTime |
|
208
|
|
|
* |
|
209
|
|
|
* @return TicketProject |
|
210
|
|
|
*/ |
|
211
|
|
|
public function setInsertDateTime($insertDateTime) |
|
212
|
|
|
{ |
|
213
|
|
|
$this->insertDateTime = $insertDateTime; |
|
214
|
|
|
|
|
215
|
|
|
return $this; |
|
216
|
|
|
} |
|
217
|
|
|
|
|
218
|
|
|
/** |
|
219
|
|
|
* @return int |
|
220
|
|
|
*/ |
|
221
|
|
|
public function getLastEditUserId() |
|
222
|
|
|
{ |
|
223
|
|
|
return $this->lastEditUserId; |
|
224
|
|
|
} |
|
225
|
|
|
|
|
226
|
|
|
/** |
|
227
|
|
|
* @param int $lastEditUserId |
|
228
|
|
|
* |
|
229
|
|
|
* @return TicketProject |
|
230
|
|
|
*/ |
|
231
|
|
|
public function setLastEditUserId($lastEditUserId) |
|
232
|
|
|
{ |
|
233
|
|
|
$this->lastEditUserId = $lastEditUserId; |
|
234
|
|
|
|
|
235
|
|
|
return $this; |
|
236
|
|
|
} |
|
237
|
|
|
|
|
238
|
|
|
/** |
|
239
|
|
|
* @return \DateTime |
|
240
|
|
|
*/ |
|
241
|
|
|
public function getLastEditDateTime() |
|
242
|
|
|
{ |
|
243
|
|
|
return $this->lastEditDateTime; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @param \DateTime $lastEditDateTime |
|
248
|
|
|
* |
|
249
|
|
|
* @return TicketProject |
|
250
|
|
|
*/ |
|
251
|
|
|
public function setLastEditDateTime($lastEditDateTime) |
|
252
|
|
|
{ |
|
253
|
|
|
$this->lastEditDateTime = $lastEditDateTime; |
|
254
|
|
|
|
|
255
|
|
|
return $this; |
|
256
|
|
|
} |
|
257
|
|
|
} |
|
258
|
|
|
|