1 | <?php |
||
7 | class File extends AbstractModel |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $name; |
||
13 | |||
14 | /** |
||
15 | * @var integer |
||
16 | */ |
||
17 | protected $size; |
||
18 | |||
19 | /** |
||
20 | * @var integer |
||
21 | */ |
||
22 | protected $completed; |
||
23 | |||
24 | /** |
||
25 | * @param string $name |
||
26 | */ |
||
27 | public function setName($name) |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getName() |
||
39 | |||
40 | /** |
||
41 | * @param integer $size |
||
42 | */ |
||
43 | public function setSize($size) |
||
47 | |||
48 | /** |
||
49 | * @return integer |
||
50 | */ |
||
51 | public function getSize() |
||
55 | |||
56 | /** |
||
57 | * @param integer $size |
||
|
|||
58 | */ |
||
59 | public function setCompleted($completed) |
||
63 | |||
64 | /** |
||
65 | * @return integer |
||
66 | */ |
||
67 | public function getCompleted() |
||
71 | |||
72 | /** |
||
73 | * @return boolean |
||
74 | */ |
||
75 | public function isDone() |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public static function getMapping() |
||
84 | { |
||
85 | return array( |
||
86 | 'name' => 'name', |
||
87 | 'length' => 'size', |
||
88 | 'bytesCompleted' => 'completed' |
||
89 | ); |
||
90 | } |
||
91 | |||
92 | public function __toString() |
||
96 | } |
||
97 |
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.