vendor/perfectneeds/seo-multi-lang-bundle/Entity/Translation/SeoSocialTranslation.php line 13

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\Entity
  8. * @ORM\Table(name="seo_social_translations")
  9. */
  10. class SeoSocialTranslation extends TranslationEntity implements EditableTranslation {
  11. /**
  12. * @var string
  13. *
  14. * @ORM\Column(name="title", type="string", length=255,nullable=true)
  15. */
  16. private $title;
  17. /**
  18. * @var string
  19. *
  20. * @ORM\Column(name="description", type="text",nullable=true)
  21. */
  22. private $description;
  23. /**
  24. * @var string
  25. *
  26. * @ORM\Column(name="image_url", type="string", length=255,nullable=true)
  27. */
  28. private $imageUrl;
  29. /**
  30. * @var
  31. * @ORM\Id
  32. * @ORM\ManyToOne(targetEntity="PN\SeoBundle\Entity\SeoSocial", inversedBy="translations")
  33. */
  34. protected $translatable;
  35. /**
  36. * @var Language
  37. * @ORM\Id
  38. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  39. */
  40. protected $language;
  41. /**
  42. * Set title
  43. *
  44. * @param string $title
  45. *
  46. * @return SeoSocialTranslation
  47. */
  48. public function setTitle($title) {
  49. $this->title = $title;
  50. return $this;
  51. }
  52. /**
  53. * Get title
  54. *
  55. * @return string
  56. */
  57. public function getTitle() {
  58. return $this->title;
  59. }
  60. /**
  61. * Set description
  62. *
  63. * @param string $description
  64. *
  65. * @return SeoSocialTranslation
  66. */
  67. public function setDescription($description) {
  68. $this->description = $description;
  69. return $this;
  70. }
  71. /**
  72. * Get description
  73. *
  74. * @return string
  75. */
  76. public function getDescription() {
  77. return $this->description;
  78. }
  79. /**
  80. * Set imageUrl
  81. *
  82. * @param string $imageUrl
  83. *
  84. * @return SeoSocialTranslation
  85. */
  86. public function setImageUrl($imageUrl) {
  87. $this->imageUrl = $imageUrl;
  88. return $this;
  89. }
  90. /**
  91. * Get imageUrl
  92. *
  93. * @return string
  94. */
  95. public function getImageUrl() {
  96. return $this->imageUrl;
  97. }
  98. }