1 | <?php |
||
5 | abstract class FeatureModel { |
||
6 | /** @var string */ |
||
7 | protected $type; |
||
8 | /** @var string */ |
||
9 | protected $name; |
||
10 | /** @var string */ |
||
11 | protected $slug; |
||
12 | /** @var string*/ |
||
13 | protected $description; |
||
14 | /** @var integer */ |
||
15 | protected $productOwnerValue; |
||
16 | /** @var integer*/ |
||
17 | protected $userValue; |
||
18 | /** @var \DateTime*/ |
||
19 | protected $createdAt; |
||
20 | /** @var \DateTime */ |
||
21 | protected $updatedAt; |
||
22 | /** @var integer */ |
||
23 | protected $status; |
||
24 | |||
25 | /** |
||
26 | * @var ProjectModel |
||
27 | * |
||
28 | * This field must be mapped by the end-user |
||
29 | */ |
||
30 | protected $project; |
||
31 | |||
32 | /** |
||
33 | * @var object |
||
34 | * |
||
35 | * This field must be mapped by the end-user |
||
36 | */ |
||
37 | protected $developer; |
||
38 | |||
39 | const STATUS_TO_SPECIFY = 0; |
||
40 | const STATUS_TO_VALORIZE = 1; |
||
41 | const STATUS_READY = 2; |
||
42 | const STATUS_TO_DO = 3; |
||
43 | const STATUS_IN_PROGRESS = 4; |
||
44 | const STATUS_TO_VALIDATE = 5; |
||
45 | const STATUS_TO_DEPLOY = 6; |
||
46 | |||
47 | /** |
||
48 | * @param string $type |
||
49 | * @return FeatureModel |
||
50 | */ |
||
51 | 2 | public function setType($type) { |
|
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | 1 | public function getType() { |
|
63 | |||
64 | /** |
||
65 | * @param string $name |
||
66 | * @return FeatureModel |
||
67 | */ |
||
68 | 3 | public function setName($name) { |
|
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 3 | public function getName() { |
|
80 | |||
81 | /** |
||
82 | * @param string $slug |
||
83 | * @return FeatureModel |
||
84 | */ |
||
85 | 3 | public function setSlug($slug) { |
|
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | 2 | public function getSlug() { |
|
97 | |||
98 | /** |
||
99 | * @param string $description |
||
100 | * @return FeatureModel |
||
101 | */ |
||
102 | 3 | public function setDescription($description) { |
|
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 2 | public function getDescription() { |
|
114 | |||
115 | /** |
||
116 | * @param ProjectModel $project |
||
117 | * @return FeatureModel |
||
118 | */ |
||
119 | 3 | public function setProject(ProjectModel $project) { |
|
124 | |||
125 | /** |
||
126 | * @return FeatureModel |
||
127 | */ |
||
128 | 2 | public function getProject() { |
|
131 | |||
132 | /** |
||
133 | * @param integer $productOwnerValue |
||
134 | * @return FeatureModel |
||
135 | */ |
||
136 | 2 | public function setProductOwnerValue($productOwnerValue) { |
|
141 | |||
142 | /** |
||
143 | * @return integer |
||
144 | */ |
||
145 | 2 | public function getProductOwnerValue() { |
|
148 | |||
149 | /** |
||
150 | * @var integer $userValue |
||
151 | * @return FeatureModel |
||
152 | */ |
||
153 | 1 | public function setUserValue($userValue) { |
|
158 | |||
159 | /** |
||
160 | * @return integer |
||
161 | */ |
||
162 | 1 | public function getUserValue() { |
|
165 | |||
166 | /** |
||
167 | * @param integer $status |
||
168 | * @return FeatureModel |
||
169 | */ |
||
170 | 2 | public function setStatus($status) { |
|
175 | |||
176 | /** |
||
177 | * @return integer |
||
178 | */ |
||
179 | 2 | public function getStatus() { |
|
182 | |||
183 | /** |
||
184 | * @param object $developer |
||
185 | * @return FeatureModel |
||
186 | */ |
||
187 | 3 | public function setDeveloper($developer) { |
|
192 | |||
193 | /** |
||
194 | * @return object |
||
195 | */ |
||
196 | 1 | public function getDeveloper() { |
|
199 | |||
200 | |||
201 | /** |
||
202 | * Set createdAt |
||
203 | * |
||
204 | * @param \DateTime $createdAt |
||
205 | * |
||
206 | * @return ProjectModel |
||
207 | */ |
||
208 | 2 | public function setCreatedAt($createdAt) |
|
214 | |||
215 | /** |
||
216 | * Get createdAt |
||
217 | * |
||
218 | * @return \DateTime |
||
219 | */ |
||
220 | 1 | public function getCreatedAt() |
|
224 | |||
225 | /** |
||
226 | * Set updatedAt |
||
227 | * |
||
228 | * @param \DateTime $updatedAt |
||
229 | * |
||
230 | * @return ProjectModel |
||
231 | */ |
||
232 | 2 | public function setUpdatedAt($updatedAt) |
|
238 | |||
239 | /** |
||
240 | * Get updatedAt |
||
241 | * |
||
242 | * @return \DateTime |
||
243 | */ |
||
244 | 1 | public function getUpdatedAt() |
|
248 | } |
||
249 |
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..