vendor/perfectneeds/seo-multi-lang-bundle/Entity/Translation/SeoTranslation.php line 12

Open in your IDE?
  1. <?php
  2. namespace PN\SeoBundle\Entity\Translation;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use PN\LocaleBundle\Model\EditableTranslation;
  5. use PN\LocaleBundle\Model\TranslationEntity;
  6. /**
  7. * @ORM\MappedSuperclass
  8. */
  9. class SeoTranslation extends TranslationEntity implements EditableTranslation {
  10. /**
  11. * @var string
  12. *
  13. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  14. */
  15. protected $title;
  16. /**
  17. * @var string
  18. * @ORM\Column(name="slug", type="string", length=255)
  19. */
  20. protected $slug;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="meta_description", type="text" , nullable=true)
  25. */
  26. protected $metaDescription;
  27. /**
  28. * @var string
  29. *
  30. * @ORM\Column(name="focus_keyword", type="string", nullable=true)
  31. */
  32. protected $focusKeyword;
  33. /**
  34. * @var string
  35. *
  36. * @ORM\Column(name="meta_keyword", type="string", length=255, nullable=true)
  37. */
  38. protected $metaKeyword;
  39. /**
  40. * @var string
  41. *
  42. * @ORM\Column(name="meta_tags", type="text" , nullable=true)
  43. */
  44. protected $metaTags;
  45. /**
  46. * @var integer
  47. *
  48. * @ORM\Column(name="state", type="smallint", nullable=true)
  49. */
  50. protected $state;
  51. /**
  52. * @var Language
  53. * @ORM\Id
  54. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  55. */
  56. protected $language;
  57. /**
  58. * Set title
  59. *
  60. * @param string $title
  61. *
  62. * @return SeoTranslation
  63. */
  64. public function setTitle($title) {
  65. $this->title = $title;
  66. return $this;
  67. }
  68. /**
  69. * Get title
  70. *
  71. * @return string
  72. */
  73. public function getTitle() {
  74. return $this->title;
  75. }
  76. /**
  77. * Set slug
  78. *
  79. * @param string $slug
  80. *
  81. * @return SeoTranslation
  82. */
  83. public function setSlug($slug) {
  84. $this->slug = $slug;
  85. return $this;
  86. }
  87. /**
  88. * Get slug
  89. *
  90. * @return string
  91. */
  92. public function getSlug() {
  93. return $this->slug;
  94. }
  95. /**
  96. * Set metaDescription
  97. *
  98. * @param string $metaDescription
  99. *
  100. * @return SeoTranslation
  101. */
  102. public function setMetaDescription($metaDescription) {
  103. $this->metaDescription = $metaDescription;
  104. return $this;
  105. }
  106. /**
  107. * Get metaDescription
  108. *
  109. * @return string
  110. */
  111. public function getMetaDescription() {
  112. return $this->metaDescription;
  113. }
  114. /**
  115. * Set focusKeyword
  116. *
  117. * @param string $focusKeyword
  118. *
  119. * @return SeoTranslation
  120. */
  121. public function setFocusKeyword($focusKeyword) {
  122. $this->focusKeyword = $focusKeyword;
  123. return $this;
  124. }
  125. /**
  126. * Get focusKeyword
  127. *
  128. * @return string
  129. */
  130. public function getFocusKeyword() {
  131. return $this->focusKeyword;
  132. }
  133. /**
  134. * Set metaKeyword
  135. *
  136. * @param string $metaKeyword
  137. *
  138. * @return SeoTranslation
  139. */
  140. public function setMetaKeyword($metaKeyword) {
  141. $this->metaKeyword = $metaKeyword;
  142. return $this;
  143. }
  144. /**
  145. * Get metaKeyword
  146. *
  147. * @return string
  148. */
  149. public function getMetaKeyword() {
  150. return $this->metaKeyword;
  151. }
  152. /**
  153. * Set state
  154. *
  155. * @param integer $state
  156. *
  157. * @return SeoTranslation
  158. */
  159. public function setState($state) {
  160. $this->state = $state;
  161. return $this;
  162. }
  163. /**
  164. * Get state
  165. *
  166. * @return integer
  167. */
  168. public function getState() {
  169. return $this->state;
  170. }
  171. /**
  172. * Set metaTags
  173. *
  174. * @param string $metaTags
  175. * @return SeoTranslation
  176. */
  177. public function setMetaTags($metaTags) {
  178. $this->metaTags = $metaTags;
  179. return $this;
  180. }
  181. /**
  182. * Get metaTags
  183. *
  184. * @return string
  185. */
  186. public function getMetaTags() {
  187. return $this->metaTags;
  188. }
  189. }