1<?php
2
3/** @generate-class-entries */
4
5/** @not-serializable */
6class NumberFormatter
7{
8    public function __construct(string $locale, int $style, ?string $pattern = null) {}
9
10    /**
11     * @tentative-return-type
12     * @alias numfmt_create
13     */
14    public static function create(string $locale, int $style, ?string $pattern = null): ?NumberFormatter {}
15
16    /**
17     * @tentative-return-type
18     * @alias numfmt_format
19     */
20    public function format(int|float $num, int $type = NumberFormatter::TYPE_DEFAULT): string|false {}
21
22    /**
23     * @param int $offset
24     * @tentative-return-type
25     * @alias numfmt_parse
26     */
27    public function parse(string $string, int $type = NumberFormatter::TYPE_DOUBLE, &$offset = null): int|float|false {}
28
29    /**
30     * @tentative-return-type
31     * @alias numfmt_format_currency
32     */
33    public function formatCurrency(float $amount, string $currency): string|false {}
34
35    /**
36     * @param string $currency
37     * @param int $offset
38     * @tentative-return-type
39     * @alias numfmt_parse_currency
40     */
41    public function parseCurrency(string $string, &$currency, &$offset = null): float|false {}
42
43    /**
44     * @tentative-return-type
45     * @alias numfmt_set_attribute
46     */
47    public function setAttribute(int $attribute, int|float $value): bool {}
48
49    /**
50     * @tentative-return-type
51     * @alias numfmt_get_attribute
52     */
53    public function getAttribute(int $attribute): int|float|false {}
54
55    /**
56     * @tentative-return-type
57     * @alias numfmt_set_text_attribute
58     */
59    public function setTextAttribute(int $attribute, string $value): bool {}
60
61    /**
62     * @tentative-return-type
63     * @alias numfmt_get_text_attribute
64     */
65    public function getTextAttribute(int $attribute): string|false {}
66
67    /**
68     * @tentative-return-type
69     * @alias numfmt_set_symbol
70     */
71    public function setSymbol(int $symbol, string $value): bool {}
72
73    /**
74     * @tentative-return-type
75     * @alias numfmt_get_symbol
76     */
77    public function getSymbol(int $symbol): string|false {}
78
79    /**
80     * @tentative-return-type
81     * @alias numfmt_set_pattern
82     */
83    public function setPattern(string $pattern): bool {}
84
85    /**
86     * @tentative-return-type
87     * @alias numfmt_get_pattern
88     */
89    public function getPattern(): string|false {}
90
91    /**
92     * @tentative-return-type
93     * @alias numfmt_get_locale
94     */
95    public function getLocale(int $type = ULOC_ACTUAL_LOCALE): string|false {}
96
97    /**
98     * @tentative-return-type
99     * @alias numfmt_get_error_code
100     */
101    public function getErrorCode(): int {}
102
103    /**
104     * @tentative-return-type
105     * @alias numfmt_get_error_message
106     */
107    public function getErrorMessage(): string {}
108}
109