1<?php 2 3/** @generate-class-entries */ 4 5/** @not-serializable */ 6class MessageFormatter 7{ 8 public function __construct(string $locale, string $pattern) {} 9 10 /** 11 * @tentative-return-type 12 * @alias msgfmt_create 13 */ 14 public static function create(string $locale, string $pattern): ?MessageFormatter {} 15 16 /** 17 * @tentative-return-type 18 * @alias msgfmt_format 19 */ 20 public function format(array $values): string|false {} 21 22 /** 23 * @tentative-return-type 24 * @alias msgfmt_format_message 25 */ 26 public static function formatMessage(string $locale, string $pattern, array $values): string|false {} 27 28 /** 29 * @return array<int, int|float|string>|false 30 * @tentative-return-type 31 * @alias msgfmt_parse 32 */ 33 public function parse(string $string): array|false {} 34 35 /** 36 * @return array<int, int|float|string>|false 37 * @tentative-return-type 38 * @alias msgfmt_parse_message 39 */ 40 public static function parseMessage(string $locale, string $pattern, string $message): array|false {} 41 42 /** 43 * @tentative-return-type 44 * @alias msgfmt_set_pattern 45 */ 46 public function setPattern(string $pattern): bool {} 47 48 /** 49 * @tentative-return-type 50 * @alias msgfmt_get_pattern 51 */ 52 public function getPattern(): string|false {} 53 54 /** 55 * @tentative-return-type 56 * @alias msgfmt_get_locale 57 */ 58 public function getLocale(): string {} 59 60 /** 61 * @tentative-return-type 62 * @alias msgfmt_get_error_code 63 */ 64 public function getErrorCode(): int {} 65 66 /** 67 * @tentative-return-type 68 * @alias msgfmt_get_error_message 69 */ 70 public function getErrorMessage(): string {} 71} 72