AdapterInterface.php 658 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Translate;
  7. /**
  8. * Magento translate adapter interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface AdapterInterface
  14. {
  15. /**
  16. * Translate string
  17. *
  18. * @param string|array $messageId
  19. * @param null $locale
  20. * @return string
  21. */
  22. public function translate($messageId, $locale = null);
  23. // @codingStandardsIgnoreStart
  24. /**
  25. * Translate string
  26. *
  27. * @return string
  28. * @SuppressWarnings(PHPMD.ShortMethodName)
  29. */
  30. public function __();
  31. // @codingStandardsIgnoreEnd
  32. }