ChoiceMessageFormatterInterface.php 914B

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 Abdellatif Ait boudad <a.aitboudad@gmail.com>
  13. */
  14. interface ChoiceMessageFormatterInterface
  15. {
  16. /**
  17. * Formats a localized message pattern with given arguments.
  18. *
  19. * @param string $message The message (may also be an object that can be cast to string)
  20. * @param int $number The number to use to find the indice of the message
  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 choiceFormat($message, $number, $locale, array $parameters = array());
  27. }