| 1 | <?php |
||
| 7 | class Month extends Enum |
||
| 8 | { |
||
| 9 | const JANUARY = 'January'; |
||
| 10 | const FEBRUARY = 'February'; |
||
| 11 | const MARCH = 'March'; |
||
| 12 | const APRIL = 'April'; |
||
| 13 | const MAY = 'May'; |
||
| 14 | const JUNE = 'June'; |
||
| 15 | const JULY = 'July'; |
||
| 16 | const AUGUST = 'August'; |
||
| 17 | const SEPTEMBER = 'September'; |
||
| 18 | const OCTOBER = 'October'; |
||
| 19 | const NOVEMBER = 'November'; |
||
| 20 | const DECEMBER = 'December'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get current Month |
||
| 24 | * |
||
| 25 | * @return Month |
||
| 26 | */ |
||
| 27 | 4 | public static function now() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Returns Month from a native PHP value |
||
| 36 | * |
||
| 37 | * @param int $month |
||
|
|
|||
| 38 | * @return Month |
||
| 39 | */ |
||
| 40 | 3 | public static function fromNative() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Returns Month from a native PHP \DateTime |
||
| 49 | * |
||
| 50 | * @param \DateTime $date |
||
| 51 | * @return Month |
||
| 52 | */ |
||
| 53 | 8 | public static function fromNativeDateTime(\DateTime $date) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Returns a numeric representation of the Month. |
||
| 62 | * 1 for January to 12 for December. |
||
| 63 | * |
||
| 64 | * @return int |
||
| 65 | */ |
||
| 66 | 11 | public function getNumericValue() |
|
| 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.