1 | <?php |
||
9 | class Marker_Model extends \WPLib_Model_Base { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $_address; |
||
15 | |||
16 | /** |
||
17 | * @var Geocoder |
||
18 | */ |
||
19 | protected $_geocoder; |
||
20 | |||
21 | /** |
||
22 | * @var Location |
||
23 | */ |
||
24 | protected $_location; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $_title; |
||
30 | |||
31 | /** |
||
32 | * Marker_Model constructor. |
||
33 | * @param array|object|string $address |
||
|
|||
34 | * @param array $args |
||
35 | */ |
||
36 | function __construct( $args = array() ) { |
||
46 | |||
47 | /** |
||
48 | * @return float |
||
49 | */ |
||
50 | function latitude() { |
||
53 | |||
54 | /** |
||
55 | * @return Location |
||
56 | */ |
||
57 | function location() { |
||
63 | |||
64 | /** |
||
65 | * @return float |
||
66 | */ |
||
67 | function longitude() { |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | function title() { |
||
77 | |||
78 | /** |
||
79 | * @return Geocoder |
||
80 | */ |
||
81 | private function _geocoder() { |
||
88 | } |
||
89 |
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.