| 1 | <?php |
||
| 11 | final class QueueName |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $name; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $prefix; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * JobName constructor. |
||
| 25 | * @param string $name |
||
| 26 | * @param string $prefix |
||
| 27 | * @param string $separator |
||
|
|
|||
| 28 | */ |
||
| 29 | public function __construct($name, $prefix = "") |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function __toString() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getQueueName() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getName() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public function getPrefix() |
||
| 69 | |||
| 70 | |||
| 71 | } |
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.