ChoiceMessageFormatterInterface.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. * @deprecated since Symfony 4.2, use MessageFormatterInterface::format() with a %count% parameter instead
  15. */
  16. interface ChoiceMessageFormatterInterface
  17. {
  18. /**
  19. * Formats a localized message pattern with given arguments.
  20. *
  21. * @param string $message The message (may also be an object that can be cast to string)
  22. * @param int $number The number to use to find the indice of the message
  23. * @param string $locale The message locale
  24. * @param array $parameters An array of parameters for the message
  25. *
  26. * @return string
  27. */
  28. public function choiceFormat($message, $number, $locale, array $parameters = []);
  29. }