TranslatableInterface.php 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 TranslatableInterface
  15. {
  16. /**
  17. * Get all translations
  18. *
  19. * @return TranslationInterface[]
  20. */
  21. public function getTranslations();
  22. /**
  23. * Add a new translation
  24. *
  25. * @param TranslationInterface $translation
  26. * @return self
  27. */
  28. public function addTranslation(TranslationInterface $translation);
  29. /**
  30. * Remove a translation
  31. *
  32. * @param TranslationInterface $translation
  33. * @return $this
  34. */
  35. public function removeTranslation(TranslationInterface $translation);
  36. }