TranslationInterface.php 1.1KB

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