1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Developtech\AgilityBundle\Model; |
4
|
|
|
|
5
|
|
|
use Symfony\Component\Security\Core\User\UserInterface; |
6
|
|
|
|
7
|
|
|
class FeedbackModel |
8
|
|
|
{ |
9
|
|
|
/** @var string */ |
10
|
|
|
protected $name; |
11
|
|
|
/** @var string */ |
12
|
|
|
protected $slug; |
13
|
|
|
/** @var string */ |
14
|
|
|
protected $description; |
15
|
|
|
/** @var int */ |
16
|
|
|
protected $status; |
17
|
|
|
/** @var \DateTime*/ |
18
|
|
|
protected $createdAt; |
19
|
|
|
/** @var \DateTime */ |
20
|
|
|
protected $updatedAt; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var ProjectModel |
24
|
|
|
* |
25
|
|
|
* This field must be mapped by the end-user to the Project extended class |
26
|
|
|
*/ |
27
|
|
|
protected $project; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var UserInterface |
31
|
|
|
* |
32
|
|
|
* This field must be mapped by the end-user |
33
|
|
|
*/ |
34
|
|
|
protected $author; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var UserInterface |
38
|
|
|
* |
39
|
|
|
* This field must be mapped by the end-user |
40
|
|
|
*/ |
41
|
|
|
protected $developer; |
42
|
|
|
|
43
|
|
|
const STATUS_OPEN = 0; |
44
|
|
|
const STATUS_TO_DO = 1; |
45
|
|
|
const STATUS_IN_PROGRESS = 2; |
46
|
|
|
const STATUS_TO_VALIDATE = 3; |
47
|
|
|
const STATUS_DONE = 4; |
48
|
|
|
const STATUS_CLOSED = 5; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* Set name |
52
|
|
|
* |
53
|
|
|
* @param string $name |
54
|
|
|
* |
55
|
|
|
* @return FeedbackModel |
56
|
|
|
*/ |
57
|
5 |
|
public function setName($name) |
58
|
|
|
{ |
59
|
5 |
|
$this->name = $name; |
60
|
|
|
|
61
|
5 |
|
return $this; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* Get name |
66
|
|
|
* |
67
|
|
|
* @return string |
68
|
|
|
*/ |
69
|
1 |
|
public function getName() |
70
|
|
|
{ |
71
|
1 |
|
return $this->name; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Set slug |
76
|
|
|
* |
77
|
|
|
* @param string $slug |
78
|
|
|
* |
79
|
|
|
* @return FeedbackModel |
80
|
|
|
*/ |
81
|
5 |
|
public function setSlug($slug) |
82
|
|
|
{ |
83
|
5 |
|
$this->slug = $slug; |
84
|
|
|
|
85
|
5 |
|
return $this; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* Get slug |
90
|
|
|
* |
91
|
|
|
* @return string |
92
|
|
|
*/ |
93
|
1 |
|
public function getSlug() |
94
|
|
|
{ |
95
|
1 |
|
return $this->slug; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* Set description |
100
|
|
|
* |
101
|
|
|
* @param string $description |
102
|
|
|
* |
103
|
|
|
* @return FeedbackModel |
104
|
|
|
*/ |
105
|
5 |
|
public function setDescription($description) |
106
|
|
|
{ |
107
|
5 |
|
$this->description = $description; |
108
|
|
|
|
109
|
5 |
|
return $this; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* Get description |
114
|
|
|
* |
115
|
|
|
* @return string |
116
|
|
|
*/ |
117
|
1 |
|
public function getDescription() |
118
|
|
|
{ |
119
|
1 |
|
return $this->description; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* Set project |
124
|
|
|
* |
125
|
|
|
* @param ProjectModel $project |
126
|
|
|
* |
127
|
|
|
* @return FeedbackModel |
128
|
|
|
*/ |
129
|
5 |
|
public function setProject(ProjectModel $project) |
130
|
|
|
{ |
131
|
5 |
|
$this->project = $project; |
132
|
|
|
|
133
|
5 |
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* Get project |
138
|
|
|
* |
139
|
|
|
* @return ProjectModel |
140
|
|
|
*/ |
141
|
1 |
|
public function getProject() |
142
|
|
|
{ |
143
|
1 |
|
return $this->project; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* Set author |
148
|
|
|
* |
149
|
|
|
* @param UserInterface $author |
150
|
|
|
* |
151
|
|
|
* @return FeedbackModel |
152
|
|
|
*/ |
153
|
5 |
|
public function setAuthor(UserInterface $author) |
154
|
|
|
{ |
155
|
5 |
|
$this->author = $author; |
156
|
|
|
|
157
|
5 |
|
return $this; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* Get author |
162
|
|
|
* |
163
|
|
|
* @return UserInterface |
164
|
|
|
*/ |
165
|
2 |
|
public function getAuthor() |
166
|
|
|
{ |
167
|
2 |
|
return $this->author; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* Set status |
172
|
|
|
* |
173
|
|
|
* @param integer $status |
174
|
|
|
* |
175
|
|
|
* @return FeedbackModel |
176
|
|
|
*/ |
177
|
2 |
|
public function setStatus($status) |
178
|
|
|
{ |
179
|
2 |
|
$this->status = $status; |
180
|
|
|
|
181
|
2 |
|
return $this; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* Get status |
186
|
|
|
* |
187
|
|
|
* @return int |
188
|
|
|
*/ |
189
|
1 |
|
public function getStatus() |
190
|
|
|
{ |
191
|
1 |
|
return $this->status; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* Set developer |
196
|
|
|
* |
197
|
|
|
* @param UserInterface $developer |
198
|
|
|
* |
199
|
|
|
* @return FeedbackModel |
200
|
|
|
*/ |
201
|
4 |
|
public function setDeveloper(UserInterface $developer) |
202
|
|
|
{ |
203
|
4 |
|
$this->developer = $developer; |
204
|
|
|
|
205
|
4 |
|
return $this; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* Get developer |
210
|
|
|
* |
211
|
|
|
* @return UserInterface |
212
|
|
|
*/ |
213
|
|
|
public function getDeveloper() |
214
|
|
|
{ |
215
|
|
|
return $this->developer; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* Set createdAt |
220
|
|
|
* |
221
|
|
|
* @param \DateTime $createdAt |
222
|
|
|
* |
223
|
|
|
* @return FeedbackModel |
224
|
|
|
*/ |
225
|
4 |
|
public function setCreatedAt($createdAt) |
226
|
|
|
{ |
227
|
4 |
|
$this->createdAt = $createdAt; |
|
|
|
|
228
|
|
|
|
229
|
4 |
|
return $this; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* Get createdAt |
234
|
|
|
* |
235
|
|
|
* @return \DateTime |
236
|
|
|
*/ |
237
|
|
|
public function getCreatedAt() |
238
|
|
|
{ |
239
|
|
|
return $this->createdAt; |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
/** |
243
|
|
|
* Set updatedAt |
244
|
|
|
* |
245
|
|
|
* @param \DateTime $updatedAt |
246
|
|
|
* |
247
|
|
|
* @return FeedbackModel |
248
|
|
|
*/ |
249
|
4 |
|
public function setUpdatedAt($updatedAt) |
250
|
|
|
{ |
251
|
4 |
|
$this->updatedAt = $updatedAt; |
252
|
|
|
|
253
|
4 |
|
return $this; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* Get updatedAt |
258
|
|
|
* |
259
|
|
|
* @return \DateTime |
260
|
|
|
*/ |
261
|
|
|
public function getUpdatedAt() |
262
|
|
|
{ |
263
|
|
|
return $this->updatedAt; |
264
|
|
|
} |
265
|
|
|
} |
266
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..