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 | public function setType($type) { |
||
52 | $this->type = $type; |
||
53 | |||
54 | return $this; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getType() { |
||
61 | return $this->type; |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * @param string $name |
||
66 | * @return FeatureModel |
||
67 | */ |
||
68 | public function setName($name) { |
||
69 | $this->name = $name; |
||
70 | |||
71 | return $this; |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getName() { |
||
78 | return $this->name; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @param string $slug |
||
83 | * @return FeatureModel |
||
84 | */ |
||
85 | public function setSlug($slug) { |
||
86 | $this->slug = $slug; |
||
87 | |||
88 | return $this; |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getSlug() { |
||
95 | return $this->slug; |
||
96 | } |
||
97 | |||
98 | /** |
||
99 | * @param string $description |
||
100 | * @return FeatureModel |
||
101 | */ |
||
102 | public function setDescription($description) { |
||
103 | $this->description = $description; |
||
104 | |||
105 | return $this; |
||
106 | } |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getDescription() { |
||
112 | return $this->description; |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * @param ProjectModel $project |
||
117 | * @return FeatureModel |
||
118 | */ |
||
119 | public function setProject(ProjectModel $project) { |
||
120 | $this->project = $project; |
||
121 | |||
122 | return $this; |
||
123 | } |
||
124 | |||
125 | /** |
||
126 | 2 | * @return FeatureModel |
|
127 | 2 | */ |
|
128 | public function getProject() { |
||
129 | 2 | return $this->project; |
|
130 | } |
||
131 | |||
132 | /** |
||
133 | * @param integer $productOwnerValue |
||
134 | * @return FeatureModel |
||
135 | 3 | */ |
|
136 | 3 | public function setProductOwnerValue($productOwnerValue) { |
|
137 | $this->productOwnerValue = $productOwnerValue; |
||
138 | |||
139 | return $this; |
||
140 | } |
||
141 | |||
142 | /** |
||
143 | 2 | * @return integer |
|
144 | 2 | */ |
|
145 | public function getProductOwnerValue() { |
||
146 | 2 | return $this->productOwnerValue; |
|
147 | } |
||
148 | |||
149 | /** |
||
150 | * @var integer $userValue |
||
151 | * @return FeatureModel |
||
152 | 1 | */ |
|
153 | 1 | public function setUserValue($userValue) { |
|
154 | $this->userValue = $userValue; |
||
155 | |||
156 | return $this; |
||
157 | } |
||
158 | |||
159 | /** |
||
160 | 3 | * @return integer |
|
161 | 3 | */ |
|
162 | public function getUserValue() { |
||
163 | 3 | return $this->userValue; |
|
164 | } |
||
165 | |||
166 | /** |
||
167 | * @param integer $status |
||
168 | * @return FeatureModel |
||
169 | 3 | */ |
|
170 | 3 | public function setStatus($status) { |
|
171 | $this->status = $status; |
||
172 | |||
173 | return $this; |
||
174 | } |
||
175 | |||
176 | /** |
||
177 | 3 | * @return integer |
|
178 | 3 | */ |
|
179 | public function getStatus() { |
||
180 | 3 | return $this->status; |
|
181 | } |
||
182 | |||
183 | /** |
||
184 | * @param object $developer |
||
185 | * @return FeatureModel |
||
186 | 2 | */ |
|
187 | 2 | public function setDeveloper($developer) { |
|
188 | $this->developer = $developer; |
||
189 | |||
190 | return $this; |
||
191 | } |
||
192 | |||
193 | /** |
||
194 | 3 | * @return object |
|
195 | 3 | */ |
|
196 | public function getDeveloper() { |
||
197 | 3 | return $this->developer; |
|
198 | } |
||
199 | |||
200 | |||
201 | /** |
||
202 | * Set createdAt |
||
203 | 2 | * |
|
204 | 2 | * @param \DateTime $createdAt |
|
205 | * |
||
206 | * @return ProjectModel |
||
207 | */ |
||
208 | public function setCreatedAt($createdAt) |
||
209 | { |
||
210 | $this->createdAt = $createdAt; |
||
|
|||
211 | 3 | ||
212 | 3 | return $this; |
|
213 | } |
||
214 | 3 | ||
215 | 3 | /** |
|
216 | * Get createdAt |
||
217 | * |
||
218 | * @return \DateTime |
||
219 | */ |
||
220 | 2 | public function getCreatedAt() |
|
224 | |||
225 | /** |
||
226 | * Set updatedAt |
||
227 | * |
||
228 | 2 | * @param \DateTime $updatedAt |
|
229 | 2 | * |
|
230 | * @return ProjectModel |
||
231 | 2 | */ |
|
232 | public function setUpdatedAt($updatedAt) |
||
233 | { |
||
234 | $this->updatedAt = $updatedAt; |
||
235 | |||
236 | return $this; |
||
237 | 2 | } |
|
238 | 2 | ||
239 | /** |
||
240 | * Get updatedAt |
||
241 | * |
||
242 | * @return \DateTime |
||
243 | */ |
||
244 | 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..