MessageBundle.php 638 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Elgg\I18n;
  3. /**
  4. * WARNING: API IN FLUX. DO NOT USE DIRECTLY.
  5. *
  6. * TODO(ewinslow): Have this extend Table(row=string, column=Locale, value=?MessageTemplate)
  7. * if we ever support a Table data structure.
  8. *
  9. * @since 1.11
  10. *
  11. * @access private
  12. */
  13. interface MessageBundle {
  14. /**
  15. * Fetches the translatable message associated with the given key
  16. *
  17. * @param string $key String identifier for the message
  18. * @param Locale $locale Locale in which the message is written
  19. *
  20. * @return ?MessageTemplate The message object or null if not found.
  21. */
  22. public function get($key, Locale $locale);
  23. }