1 | <?php |
||
9 | class BoolLiteral implements ValueObjectInterface |
||
10 | { |
||
11 | protected $value; |
||
12 | |||
13 | /** |
||
14 | * Returns a BoolLiteral object given a boolean as parameter. |
||
15 | * |
||
16 | * @param Boolean $boolean |
||
17 | * |
||
18 | * @return static |
||
19 | */ |
||
20 | 9 | public static function fromBoolean(Boolean $boolean) |
|
24 | |||
25 | /** |
||
26 | * Returns a BoolLiteral object given a PHP native bool as parameter. |
||
27 | * |
||
28 | * @param bool $value |
||
|
|||
29 | * |
||
30 | * @return static |
||
31 | */ |
||
32 | 10 | public static function fromNative() |
|
38 | |||
39 | /** |
||
40 | * Returns a BoolLiteral object given a PHP native bool as parameter. |
||
41 | * |
||
42 | * @param bool $value |
||
43 | */ |
||
44 | 14 | public function __construct($value) |
|
52 | |||
53 | /** |
||
54 | * Tells whether two BoolLiteral are equal by comparing their values |
||
55 | * |
||
56 | * @param ValueObjectInterface $boolLiteral |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | 11 | public function sameValueAs(ValueObjectInterface $boolLiteral) |
|
68 | |||
69 | /** |
||
70 | * Returns the native value of the boolean |
||
71 | * |
||
72 | * @return bool |
||
73 | */ |
||
74 | 12 | public function toNative() |
|
78 | |||
79 | /** |
||
80 | * Returns a string representation of the object |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | 1 | public function __toString() |
|
88 | } |
||
89 |
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.