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