| 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) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param $resourcesDir |
||
| 49 | */ |
||
| 50 | private function initializeCurrenciesFile($resourcesDir) |
||
| 58 | } |
||
| 59 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.