resourcebundle.stub.php 1.2 KB

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