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