MessageFormatterInterface.php 866B

12345678910111213141516171819202122232425262728293031
  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 = array());
  27. }