1 | <?php |
||
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 | 3 | public function setName($name) |
|
63 | |||
64 | /** |
||
65 | * Get name |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | 1 | public function getName() |
|
73 | |||
74 | /** |
||
75 | * Set slug |
||
76 | * |
||
77 | * @param string $slug |
||
78 | * |
||
79 | * @return FeedbackModel |
||
80 | */ |
||
81 | 3 | public function setSlug($slug) |
|
87 | |||
88 | /** |
||
89 | * Get slug |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | 1 | public function getSlug() |
|
97 | |||
98 | /** |
||
99 | * Set description |
||
100 | * |
||
101 | * @param string $description |
||
102 | * |
||
103 | * @return FeedbackModel |
||
104 | */ |
||
105 | 3 | public function setDescription($description) |
|
111 | |||
112 | /** |
||
113 | * Get description |
||
114 | * |
||
115 | * @return string |
||
116 | */ |
||
117 | 1 | public function getDescription() |
|
121 | |||
122 | /** |
||
123 | * Set project |
||
124 | * |
||
125 | * @param ProjectModel $project |
||
126 | * |
||
127 | * @return FeedbackModel |
||
128 | */ |
||
129 | 3 | public function setProject(ProjectModel $project) |
|
135 | |||
136 | /** |
||
137 | * Get project |
||
138 | * |
||
139 | * @return ProjectModel |
||
140 | */ |
||
141 | 1 | public function getProject() |
|
145 | |||
146 | /** |
||
147 | * Set author |
||
148 | * |
||
149 | * @param UserInterface $author |
||
150 | * |
||
151 | * @return FeedbackModel |
||
152 | */ |
||
153 | 3 | public function setAuthor(UserInterface $author) |
|
159 | |||
160 | /** |
||
161 | * Get author |
||
162 | * |
||
163 | * @return UserInterface |
||
164 | */ |
||
165 | 1 | public function getAuthor() |
|
169 | |||
170 | /** |
||
171 | * Set status |
||
172 | * |
||
173 | * @param integer $status |
||
174 | * |
||
175 | * @return FeedbackModel |
||
176 | */ |
||
177 | 2 | public function setStatus($status) |
|
183 | |||
184 | /** |
||
185 | * Get status |
||
186 | * |
||
187 | * @return int |
||
188 | */ |
||
189 | 1 | public function getStatus() |
|
193 | |||
194 | /** |
||
195 | * Set developer |
||
196 | * |
||
197 | * @param UserInterface $developer |
||
198 | * |
||
199 | * @return FeedbackModel |
||
200 | */ |
||
201 | 2 | public function setDeveloper(UserInterface $developer) |
|
207 | |||
208 | /** |
||
209 | * Get developer |
||
210 | * |
||
211 | * @return UserInterface |
||
212 | */ |
||
213 | public function getDeveloper() |
||
217 | |||
218 | /** |
||
219 | * Set createdAt |
||
220 | * |
||
221 | * @param \DateTime $createdAt |
||
222 | * |
||
223 | * @return FeedbackModel |
||
224 | */ |
||
225 | 2 | public function setCreatedAt($createdAt) |
|
231 | |||
232 | /** |
||
233 | * Get createdAt |
||
234 | * |
||
235 | * @return \DateTime |
||
236 | */ |
||
237 | public function getCreatedAt() |
||
241 | |||
242 | /** |
||
243 | * Set updatedAt |
||
244 | * |
||
245 | * @param \DateTime $updatedAt |
||
246 | * |
||
247 | * @return FeedbackModel |
||
248 | */ |
||
249 | 2 | public function setUpdatedAt($updatedAt) |
|
255 | |||
256 | /** |
||
257 | * Get updatedAt |
||
258 | * |
||
259 | * @return \DateTime |
||
260 | */ |
||
261 | public function getUpdatedAt() |
||
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..