1 | <?php |
||
23 | class CurrencyFactory |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @var CountryCurrencyDao $country_currencies |
||
28 | */ |
||
29 | private $country_currencies; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * CurrencyFactory constructor. |
||
34 | * |
||
35 | * @param CountryCurrencyDao $country_currencies |
||
36 | * @param EE_Organization_Config $organization_config |
||
|
|||
37 | */ |
||
38 | public function __construct(CountryCurrencyDao $country_currencies) |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @param array $country_currency |
||
46 | * @return Currency |
||
47 | */ |
||
48 | private function createCurrencyFromCountryCurrency(array $country_currency) |
||
65 | |||
66 | |||
67 | /** |
||
68 | * returns a Currency object for the supplied country code |
||
69 | * |
||
70 | * @param string $CNT_ISO |
||
71 | * @return Currency |
||
72 | * @throws EE_Error |
||
73 | * @throws InvalidArgumentException |
||
74 | */ |
||
75 | public function createFromCountryCode($CNT_ISO) |
||
81 | |||
82 | |||
83 | /** |
||
84 | * returns a Currency object for the supplied currency code |
||
85 | * PLZ NOTE: variations may exist between how different countries display the same currency, |
||
86 | * so it may be necessary to use CreateCurrency::fromCountryCode() to achieve the desired results |
||
87 | * |
||
88 | * @param string $code |
||
89 | * @return Currency |
||
90 | * @throws InvalidArgumentException |
||
91 | * @throws EE_Error |
||
92 | */ |
||
93 | public function createFromCode($code) |
||
99 | } |
||
100 | // Location: CreateCurrency.php |
||
101 |
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.