| 1 | <?php  | 
            ||
| 7 | class Coordinates  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Latitude.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @var float  | 
            ||
| 13 | */  | 
            ||
| 14 | protected $latitude;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * Longitude.  | 
            ||
| 18 | *  | 
            ||
| 19 | * @var float  | 
            ||
| 20 | */  | 
            ||
| 21 | protected $longitude;  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * Timestamp.  | 
            ||
| 25 | *  | 
            ||
| 26 | * @var Datetime  | 
            ||
| 27 | */  | 
            ||
| 28 | protected $date;  | 
            ||
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * Création d'une coordonnée.  | 
            ||
| 32 | *  | 
            ||
| 33 | * @param float $x  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 34 | * @param float $y  | 
            ||
| 35 | * @param Datetime $date  | 
            ||
| 36 | */  | 
            ||
| 37 | public function __construct($latitude, $longitude, Datetime $date = null)  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 | * Set the value of Point Y.  | 
            ||
| 44 | *  | 
            ||
| 45 | * @param float $x  | 
            ||
| 46 | * @param float $y  | 
            ||
| 47 | * @param Datetime $date  | 
            ||
| 48 | *  | 
            ||
| 49 | * @return self  | 
            ||
| 50 | */  | 
            ||
| 51 | public function setCoordinates($latitude, $longitude, Datetime $date = null)  | 
            ||
| 59 | |||
| 60 | /**  | 
            ||
| 61 | * Get the value of Point X.  | 
            ||
| 62 | *  | 
            ||
| 63 | * @return float  | 
            ||
| 64 | */  | 
            ||
| 65 | public function getLatitude()  | 
            ||
| 69 | |||
| 70 | /**  | 
            ||
| 71 | * Get the value of Point Y.  | 
            ||
| 72 | *  | 
            ||
| 73 | * @return float  | 
            ||
| 74 | */  | 
            ||
| 75 | public function getLongitude()  | 
            ||
| 79 | |||
| 80 | /**  | 
            ||
| 81 | * Get the value of Timestamp.  | 
            ||
| 82 | *  | 
            ||
| 83 | * @return Datetime  | 
            ||
| 84 | */  | 
            ||
| 85 | public function getDate()  | 
            ||
| 89 | }  | 
            ||
| 90 | 
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.