| 1 | <?php |
||
| 9 | class TextSearchQuery |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Query |
||
| 13 | */ |
||
| 14 | private $query; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Location |
||
| 18 | */ |
||
| 19 | private $location; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var Radius |
||
| 23 | */ |
||
| 24 | private $radius; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $query |
||
| 28 | * @param float|null $latitude |
||
| 29 | * @param float|null $longitude |
||
| 30 | * @param int|float|null $radius |
||
| 31 | * @param string|null $name |
||
|
|
|||
| 32 | */ |
||
| 33 | public function __construct($query, $latitude = null, $longitude = null, $radius = null) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return Query |
||
| 48 | */ |
||
| 49 | public function getQuery() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Location|null |
||
| 56 | */ |
||
| 57 | public function getLocation() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return Radius|null |
||
| 64 | */ |
||
| 65 | public function getRadius() |
||
| 69 | } |
||
| 70 |
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.