1 | <?php |
||
8 | class PriceFormatter |
||
9 | { |
||
10 | const CURRENCIES_FILE = 'currencies.json'; |
||
11 | |||
12 | private $currencies; |
||
13 | |||
14 | public function __construct($resourcesDir) |
||
18 | |||
19 | /** |
||
20 | * @param string $price |
||
21 | * @param string $currencyCode |
||
22 | * @return string |
||
|
|||
23 | */ |
||
24 | public function format($price, $currencyCode) |
||
47 | |||
48 | /** |
||
49 | * @param $resourcesDir |
||
50 | */ |
||
51 | private function initializeCurrenciesFile($resourcesDir) |
||
59 | } |
||
60 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.