1 | <?php |
||
9 | class Currency implements ValueObjectInterface |
||
10 | { |
||
11 | /** @var BaseCurrency */ |
||
12 | protected $currency; |
||
13 | |||
14 | /** @var CurrencyCode */ |
||
15 | protected $code; |
||
16 | |||
17 | /** |
||
18 | * Returns a new Currency object from native string currency code |
||
19 | * |
||
20 | * @param string $code Currency code |
||
|
|||
21 | * @return static |
||
22 | */ |
||
23 | 2 | public static function fromNative() |
|
29 | |||
30 | 13 | public function __construct(CurrencyCode $code) |
|
35 | |||
36 | /** |
||
37 | * Tells whether two Currency are equal by comparing their names |
||
38 | * |
||
39 | * @param ValueObjectInterface $currency |
||
40 | * @return bool |
||
41 | */ |
||
42 | 4 | public function sameValueAs(ValueObjectInterface $currency) |
|
50 | |||
51 | /** |
||
52 | * Returns currency code |
||
53 | * |
||
54 | * @return CurrencyCode |
||
55 | */ |
||
56 | 13 | public function getCode() |
|
60 | |||
61 | /** |
||
62 | * Returns string representation of the currency |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | 1 | public function __toString() |
|
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.