TranslationInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. public function setTranslatable($translatable);
  17. /**
  18. * Get translatable
  19. *
  20. * @return string
  21. */
  22. public function getTranslatable();
  23. /**
  24. * Set locale
  25. *
  26. * @param string $locale
  27. */
  28. public function setLocale($locale);
  29. /**
  30. * Get locale
  31. *
  32. * @return string
  33. */
  34. public function getLocale();
  35. /**
  36. * Set property
  37. *
  38. * @param string $property
  39. */
  40. public function setProperty($property);
  41. /**
  42. * Get property
  43. *
  44. * @return string
  45. */
  46. public function getProperty();
  47. /**
  48. * Set value
  49. *
  50. * @param string $value
  51. *
  52. * @return static
  53. */
  54. public function setValue($value);
  55. /**
  56. * Get value
  57. *
  58. * @return string
  59. */
  60. public function getValue();
  61. }