TranslationInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. namespace Gedmo\Translator;
  3. /**
  4. * Entity/Document translation interface.
  5. *
  6. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  7. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  8. */
  9. interface TranslationInterface
  10. {
  11. /**
  12. * Set translatable
  13. *
  14. * @param string $translatable
  15. */
  16. function setTranslatable($translatable);
  17. /**
  18. * Get translatable
  19. *
  20. * @return string $translatable
  21. */
  22. function getTranslatable();
  23. /**
  24. * Set locale
  25. *
  26. * @param string $locale
  27. */
  28. function setLocale($locale);
  29. /**
  30. * Get locale
  31. *
  32. * @return string $locale
  33. */
  34. function getLocale();
  35. /**
  36. * Set property
  37. *
  38. * @param string $property
  39. */
  40. function setProperty($property);
  41. /**
  42. * Get property
  43. *
  44. * @return string $field
  45. */
  46. function getProperty();
  47. /**
  48. * Set value
  49. *
  50. * @param string $value
  51. * @return TranslationInterface
  52. */
  53. function setValue($value);
  54. /**
  55. * Get value
  56. *
  57. * @return string $value
  58. */
  59. function getValue();
  60. }