1 | <?php |
||
8 | class Imei extends Natural |
||
9 | { |
||
10 | /** |
||
11 | * Returns an Imei number |
||
12 | * |
||
13 | * @param int $value |
||
14 | */ |
||
15 | 4 | public function __construct($value) |
|
34 | |||
35 | /** |
||
36 | * Checks the validity of the Imei using the Luhn algorithm |
||
37 | * |
||
38 | * @param int $value |
||
|
|||
39 | * @return int |
||
40 | * @throws \ValueObjects\Exception\InvalidNativeArgumentException |
||
41 | */ |
||
42 | 2 | private function validateLuhnAlgorithm($imei) |
|
56 | } |
||
57 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.