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