| Total Complexity | 5 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | final class IntlMessageFormatter implements MessageFormatterInterface  | 
            ||
| 11 | { | 
            ||
| 12 | public function __construct()  | 
            ||
| 13 |     { | 
            ||
| 14 |         if (!extension_loaded('intl')) { | 
            ||
| 15 | throw new RuntimeException(  | 
            ||
| 16 | 'In order to use intl message formatter, intl extension must be installed and enabled.'  | 
            ||
| 17 | );  | 
            ||
| 18 | }  | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 |      * This method uses {{@see MessageFormatter::format()}} | 
            ||
| 23 | *  | 
            ||
| 24 | * @link https://php.net/manual/en/messageformatter.format.php  | 
            ||
| 25 | */  | 
            ||
| 26 | public function format(string $message, array $parameters, string $locale): string  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 |