1 | <?php |
||
27 | class Task |
||
28 | { |
||
29 | /** |
||
30 | * Name |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $name; |
||
35 | |||
36 | /** |
||
37 | * Duration |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $duration; |
||
42 | |||
43 | /** |
||
44 | * Start Date |
||
45 | * |
||
46 | * @var int |
||
47 | */ |
||
48 | private $startDate; |
||
49 | |||
50 | /** |
||
51 | * End Date |
||
52 | * |
||
53 | * @var int |
||
54 | */ |
||
55 | private $endDate; |
||
56 | |||
57 | /** |
||
58 | * Progress |
||
59 | * |
||
60 | * @var float |
||
61 | */ |
||
62 | private $progress; |
||
63 | |||
64 | /** |
||
65 | * Index |
||
66 | * |
||
67 | * @var integer |
||
68 | */ |
||
69 | private $index; |
||
70 | |||
71 | /** |
||
72 | * Collection of PHPProject_Resource index |
||
73 | * |
||
74 | * @var integer[] |
||
75 | */ |
||
76 | private $resourceCollection = array(); |
||
77 | |||
78 | /** |
||
79 | * Collection of task objects |
||
80 | * |
||
81 | * @var PHPProject_Task[] |
||
82 | */ |
||
83 | private $taskCollection = array(); |
||
84 | |||
85 | /** |
||
86 | * Index of Resource |
||
87 | * @var integer |
||
88 | */ |
||
89 | public static $lastIndex = 0; |
||
90 | |||
91 | 18 | public function __construct() |
|
96 | |||
97 | /** |
||
98 | * Get name |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | 5 | public function getName() |
|
106 | |||
107 | /** |
||
108 | * Set name |
||
109 | * |
||
110 | * @param string $pValue Name of the task |
||
111 | * @return PHPProject_Task |
||
112 | */ |
||
113 | 8 | public function setName($pValue) |
|
118 | |||
119 | /** |
||
120 | * Get duration |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | 5 | public function getDuration() |
|
128 | |||
129 | /** |
||
130 | * Set duration (in days) |
||
131 | * |
||
132 | * @param string $pValue Duration of the resource |
||
133 | * @return PHPProject_Task |
||
134 | */ |
||
135 | 6 | public function setDuration($pValue) |
|
140 | |||
141 | /** |
||
142 | * Get Start Date |
||
143 | * |
||
144 | * @return datetime |
||
145 | */ |
||
146 | 5 | public function getStartDate() |
|
150 | |||
151 | /** |
||
152 | * Set Start Date |
||
153 | * |
||
154 | * @param int $pValue |
||
155 | * @return DocumentInformations |
||
156 | */ |
||
157 | 6 | public function setStartDate($pValue = null) |
|
172 | |||
173 | /** |
||
174 | * Get End Date |
||
175 | * |
||
176 | * @return datetime |
||
177 | */ |
||
178 | 5 | public function getEndDate() |
|
182 | |||
183 | /** |
||
184 | * Set End Date |
||
185 | * |
||
186 | * @param int $pValue |
||
187 | * @return DocumentInformations |
||
188 | */ |
||
189 | 3 | public function setEndDate($pValue = null) |
|
204 | |||
205 | /** |
||
206 | * Get Progress |
||
207 | * |
||
208 | * @return float |
||
209 | */ |
||
210 | 5 | public function getProgress() |
|
214 | |||
215 | /** |
||
216 | * Set progress |
||
217 | * |
||
218 | * @param float $pValue Progress of the task |
||
219 | * @return PHPProject_Task |
||
220 | */ |
||
221 | 6 | public function setProgress($pValue = 0) |
|
232 | |||
233 | /** |
||
234 | * Get index |
||
235 | */ |
||
236 | 9 | public function getIndex() |
|
240 | |||
241 | /** |
||
242 | * Set index |
||
243 | * @param integer $value |
||
244 | */ |
||
245 | 5 | public function setIndex($value) |
|
252 | |||
253 | //=============================================== |
||
254 | // Resources |
||
255 | //=============================================== |
||
256 | /** |
||
257 | * Add a resource used by the current task |
||
258 | * @param PHPProject_Resource $pResource |
||
|
|||
259 | */ |
||
260 | 6 | public function addResource(Resource $oResource) |
|
267 | |||
268 | /** |
||
269 | * Returns a collection of all resources used by the task |
||
270 | * |
||
271 | * @return Resource[] |
||
272 | */ |
||
273 | 5 | public function getResources() |
|
277 | |||
278 | 4 | public function getResourceCount() |
|
282 | |||
283 | //=============================================== |
||
284 | // Tasks |
||
285 | //=============================================== |
||
286 | 7 | public function createTask() |
|
292 | |||
293 | /** |
||
294 | * Returns a collection of all subtasks created in the task |
||
295 | * |
||
296 | * @return PHPProject_Task[] |
||
297 | */ |
||
298 | 9 | public function getTasks() |
|
302 | |||
303 | 10 | public function getTaskCount() |
|
307 | } |
||
308 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.