| 1 | <?php |
||
| 14 | class JobEvent extends Event |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var JobInterface |
||
| 18 | */ |
||
| 19 | private $job; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var boolean |
||
| 23 | */ |
||
| 24 | private $executedStatus; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * JobEvent constructor. |
||
| 28 | * @param JobInterface $job |
||
| 29 | * @param bool $executedStatus |
||
|
|
|||
| 30 | */ |
||
| 31 | public function __construct(JobInterface $job) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return JobInterface |
||
| 39 | */ |
||
| 40 | public function getJob() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param boolean $executedStatus |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function setExecutedStatus($executedStatus) |
||
| 54 | |||
| 55 | |||
| 56 | /** |
||
| 57 | * @return boolean |
||
| 58 | */ |
||
| 59 | public function isExecutedStatus() |
||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | } |
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.