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