StubTranslator.php 810 B

1234567891011121314151617181920212223242526272829303132333435
  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\Bridge\Twig\Tests\Extension\Fixtures;
  11. use Symfony\Component\Translation\TranslatorInterface;
  12. class StubTranslator implements TranslatorInterface
  13. {
  14. public function trans($id, array $parameters = array(), $domain = null, $locale = null)
  15. {
  16. return '[trans]'.$id.'[/trans]';
  17. }
  18. public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null)
  19. {
  20. return '[trans]'.$id.'[/trans]';
  21. }
  22. public function setLocale($locale)
  23. {
  24. }
  25. public function getLocale()
  26. {
  27. }
  28. }