You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
875 B

3 years ago
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Translation\Formatter;
  11. /**
  12. * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
  13. * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
  14. */
  15. interface MessageFormatterInterface
  16. {
  17. /**
  18. * Formats a localized message pattern with given arguments.
  19. *
  20. * @param string $message The message (may also be an object that can be cast to string)
  21. * @param string $locale The message locale
  22. * @param array $parameters An array of parameters for the message
  23. *
  24. * @return string
  25. */
  26. public function format(string $message, string $locale, array $parameters = []);
  27. }