diff options
Diffstat (limited to 'ext/intl/resourcebundle/resourcebundle.stub.php')
| -rw-r--r-- | ext/intl/resourcebundle/resourcebundle.stub.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ext/intl/resourcebundle/resourcebundle.stub.php b/ext/intl/resourcebundle/resourcebundle.stub.php new file mode 100644 index 0000000000..f3f0dcef1a --- /dev/null +++ b/ext/intl/resourcebundle/resourcebundle.stub.php @@ -0,0 +1,43 @@ +<?php + +class ResourceBundle implements Traversable +{ + public function __construct(?string $locale, ?string $bundlename, bool $fallback = true) {} + + /** @return ResourceBundle|null */ + public static function create(?string $locale, ?string $bundlename, bool $fallback = true) {} + + /** + * @param string|int $index + * @return mixed + */ + public function get($index, bool $fallback = true) {} + + /** @return int|false */ + public function count() {} + + /** @return array|false */ + public static function getLocales(string $bundlename) {} + + /** @return int */ + public function getErrorCode() {} + + /** @return string */ + public function getErrorMessage() {} +} + +function resourcebundle_create(?string $locale, ?string $bundlename, bool $fallback = true): ?ResourceBundle {} + +/** + * @param string|int $index + * @return mixed + */ +function resourcebundle_get(ResourceBundle $bundle, $index) {} + +function resourcebundle_count(ResourceBundle $bundle): int|false {} + +function resourcebundle_locales(string $bundlename): array|false {} + +function resourcebundle_get_error_code(ResourceBundle $bundle): int {} + +function resourcebundle_get_error_message(ResourceBundle $bundle): string {} |
