| Total Complexity | 1 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class LocaleNumberFormatter implements Formatter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | public string $locale_key = 'locale'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public string $number_key = 'number'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public string $style_key = 'style'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public string $pattern_key = 'pattern'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var float |
||
| 35 | */ |
||
| 36 | public float $default_number = 0; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Format the date and time. |
||
| 40 | * |
||
| 41 | * @param Collection $items |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function format(Collection $items): string |
||
| 58 |