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    /** @tentative-return-type */
17    public function get(string|int $index, bool $fallback = true): ResourceBundle|array|string|int|null {}
18
19    /**
20     * @tentative-return-type
21     * @alias resourcebundle_count
22     */
23    public function count(): int {}
24
25    /**
26     * @return array<int, string>|false
27     * @tentative-return-type
28     * @alias resourcebundle_locales
29     */
30    public static function getLocales(string $bundle): array|false {}
31
32    /**
33     * @tentative-return-type
34     * @alias resourcebundle_get_error_code
35     */
36    public function getErrorCode(): int {}
37
38    /**
39     * @tentative-return-type
40     * @alias resourcebundle_get_error_message
41     */
42    public function getErrorMessage(): string {}
43
44    public function getIterator(): Iterator {}
45}
46