AbstractTranslation.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. namespace Gedmo\Translatable\Document;
  3. /**
  4. * Gedmo\Translatable\Document\AbstractTranslation
  5. *
  6. * @MappedSuperclass
  7. */
  8. abstract class AbstractTranslation
  9. {
  10. /**
  11. * @var integer $id
  12. *
  13. * @Id
  14. */
  15. private $id;
  16. /**
  17. * @var string $locale
  18. *
  19. * @String
  20. */
  21. private $locale;
  22. /**
  23. * @var string $objectClass
  24. *
  25. * @String
  26. */
  27. private $objectClass;
  28. /**
  29. * @var string $field
  30. *
  31. * @String
  32. */
  33. private $field;
  34. /**
  35. * @var string $foreignKey
  36. *
  37. * @String(name="foreign_key")
  38. */
  39. private $foreignKey;
  40. /**
  41. * @var text $content
  42. *
  43. * @String
  44. */
  45. private $content;
  46. /**
  47. * Get id
  48. *
  49. * @return integer $id
  50. */
  51. public function getId()
  52. {
  53. return $this->id;
  54. }
  55. /**
  56. * Set locale
  57. *
  58. * @param string $locale
  59. */
  60. public function setLocale($locale)
  61. {
  62. $this->locale = $locale;
  63. }
  64. /**
  65. * Get locale
  66. *
  67. * @return string $locale
  68. */
  69. public function getLocale()
  70. {
  71. return $this->locale;
  72. }
  73. /**
  74. * Set field
  75. *
  76. * @param string $field
  77. */
  78. public function setField($field)
  79. {
  80. $this->field = $field;
  81. }
  82. /**
  83. * Get field
  84. *
  85. * @return string $field
  86. */
  87. public function getField()
  88. {
  89. return $this->field;
  90. }
  91. /**
  92. * Set object class
  93. *
  94. * @param string $objectClass
  95. */
  96. public function setObjectClass($objectClass)
  97. {
  98. $this->objectClass = $objectClass;
  99. }
  100. /**
  101. * Get objectClass
  102. *
  103. * @return string $objectClass
  104. */
  105. public function getObjectClass()
  106. {
  107. return $this->objectClass;
  108. }
  109. /**
  110. * Set foreignKey
  111. *
  112. * @param string $foreignKey
  113. */
  114. public function setForeignKey($foreignKey)
  115. {
  116. $this->foreignKey = $foreignKey;
  117. }
  118. /**
  119. * Get foreignKey
  120. *
  121. * @return string $foreignKey
  122. */
  123. public function getForeignKey()
  124. {
  125. return $this->foreignKey;
  126. }
  127. /**
  128. * Set content
  129. *
  130. * @param text $content
  131. */
  132. public function setContent($content)
  133. {
  134. $this->content = $content;
  135. }
  136. /**
  137. * Get content
  138. *
  139. * @return text $content
  140. */
  141. public function getContent()
  142. {
  143. return $this->content;
  144. }
  145. }