1 | <?php |
||
23 | class IntlFormatter implements FormatterInterface |
||
24 | { |
||
25 | /** |
||
26 | * |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param string $icu_version The current ICU version; mostly used for |
||
30 | * testing. |
||
31 | * |
||
32 | * @throws Exception\IcuVersionTooLow when the Version of ICU installed |
||
33 | * is too low for Aura.Intl to work properly. |
||
34 | * |
||
35 | */ |
||
36 | 12 | public function __construct($icu_version = INTL_ICU_VERSION) |
|
42 | |||
43 | /** |
||
44 | * |
||
45 | * Format the message with the help of php intl extension |
||
46 | * |
||
47 | * @param string $locale |
||
48 | * @param string $string |
||
49 | * @param array $tokens_values |
||
50 | * @return string |
||
51 | * @throws Exception |
||
52 | */ |
||
53 | 11 | public function format($locale, $string, array $tokens_values) |
|
81 | |||
82 | protected function throwCannotInstantiateFormatter() |
||
89 | } |
||
90 |