TranslationInterface.php 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Paweł Jędrzejewski
  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 Sylius\Component\Translation\Model;
  11. /**
  12. * @author Gonzalo Vilaseca <gvilaseca@reiss.co.uk>
  13. */
  14. interface TranslationInterface
  15. {
  16. /**
  17. * Get the translatable object
  18. *
  19. * @return TranslatableInterface
  20. */
  21. public function getTranslatable();
  22. /**
  23. * Set the translatable object
  24. *
  25. * @param TranslatableInterface $translatable
  26. * @return self
  27. */
  28. public function setTranslatable(TranslatableInterface $translatable = null);
  29. /**
  30. * Get the locale
  31. *
  32. * @return string
  33. */
  34. public function getLocale();
  35. /**
  36. * Set the locale
  37. *
  38. * @param string $locale
  39. * @return $this
  40. */
  41. public function setLocale($locale);
  42. }