| 1 | <?php |
||
| 8 | class LoginAttempt |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $query; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $data; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $headers; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Construct. |
||
| 27 | * |
||
| 28 | * @param array $query |
||
| 29 | * @param array $data |
||
| 30 | * @param array $headers |
||
| 31 | */ |
||
| 32 | 14 | public function __construct(array $query, array $data, array $headers) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Returns query value under given key if defined, null otherwise. |
||
| 41 | * |
||
| 42 | * @param string $query |
||
|
|
|||
| 43 | * |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function getQuery($key) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Returns data value under given key if defined, null otherwise. |
||
| 56 | * |
||
| 57 | * @param string $data |
||
| 58 | * |
||
| 59 | * @return mixed |
||
| 60 | */ |
||
| 61 | 14 | public function getData($key) |
|
| 68 | |||
| 69 | /** |
||
| 70 | * Returns headers value under given key if defined, null otherwise. |
||
| 71 | * |
||
| 72 | * @param string $headers |
||
| 73 | * |
||
| 74 | * @return mixed |
||
| 75 | */ |
||
| 76 | public function getHeaders($key) |
||
| 83 | } |
||
| 84 |
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.