MessageFormatterInterface.php 861 B

123456789101112131415161718192021222324252627282930
  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($message, $locale, array $parameters = []);
  27. }