1 | <?php |
||
11 | class AtomDateConstructType |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @property \DateTime $__value |
||
16 | */ |
||
17 | private $__value = null; |
||
18 | |||
19 | /** |
||
20 | * @property string $base |
||
21 | */ |
||
22 | private $base = null; |
||
23 | |||
24 | /** |
||
25 | * @property string $lang |
||
26 | */ |
||
27 | private $lang = null; |
||
28 | |||
29 | /** |
||
30 | * Construct |
||
31 | * |
||
32 | * @param \DateTime $value |
||
33 | */ |
||
34 | public function __construct(\DateTime $value) |
||
38 | |||
39 | /** |
||
40 | * Gets or sets the inner value |
||
41 | * |
||
42 | * @param \DateTime $value |
||
|
|||
43 | * @return \DateTime |
||
44 | */ |
||
45 | public function value() |
||
52 | |||
53 | /** |
||
54 | * Gets a string value |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function __toString() |
||
62 | |||
63 | /** |
||
64 | * Gets as base |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getBase() |
||
72 | |||
73 | /** |
||
74 | * Sets a new base |
||
75 | * |
||
76 | * @param string $base |
||
77 | * @return self |
||
78 | */ |
||
79 | public function setBase($base) |
||
84 | |||
85 | /** |
||
86 | * Gets as lang |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getLang() |
||
94 | |||
95 | /** |
||
96 | * Sets a new lang |
||
97 | * |
||
98 | * @param string $lang |
||
99 | * @return self |
||
100 | */ |
||
101 | public function setLang($lang) |
||
106 | } |
||
107 |
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.