1<?php
2
3/** @generate-function-entries */
4
5class ResourceBundle implements IteratorAggregate, Countable
6{
7    public function __construct(?string $locale, ?string $bundle, bool $fallback = true) {}
8
9    /**
10     * @return ResourceBundle|null
11     * @alias resourcebundle_create
12     */
13    public static function create(?string $locale, ?string $bundle, bool $fallback = true) {}
14
15    /**
16     * @param string|int $index
17     * @return mixed
18     * @alias resourcebundle_get
19     */
20    public function get($index, bool $fallback = true) {}
21
22    /**
23     * @return int
24     * @alias resourcebundle_count
25     */
26    public function count() {}
27
28    /**
29     * @return array|false
30     * @alias resourcebundle_locales
31     */
32    public static function getLocales(string $bundle) {}
33
34    /**
35     * @return int
36     * @alias resourcebundle_get_error_code
37     */
38    public function getErrorCode() {}
39
40    /**
41     * @return string
42     * @alias resourcebundle_get_error_message
43     */
44    public function getErrorMessage() {}
45
46    public function getIterator(): Iterator {}
47}
48