| 1 | <?php |
||
| 9 | abstract class Enum extends BaseEnum implements ValueObjectInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Returns a new Enum object from passed value matching argument |
||
| 13 | * |
||
| 14 | * @param string $value |
||
|
|
|||
| 15 | * @return static |
||
| 16 | */ |
||
| 17 | 4 | public static function fromNative() |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Returns the PHP native value of the enum |
||
| 24 | * |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | 67 | public function toNative() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Tells whether two Enum objects are sameValueAs by comparing their values |
||
| 34 | * |
||
| 35 | * @param Enum $enum |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | 23 | public function sameValueAs(ValueObjectInterface $enum) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Returns a native string representation of the Enum value |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 30 | public function __toString() |
|
| 56 | |||
| 57 | |||
| 58 | function jsonSerialize() |
||
| 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.