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