src/CMSBundle/Entity/Translation/BannerTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\CMSBundle\Entity\Translation;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use PN\LocaleBundle\Entity\Language;
  5. use PN\LocaleBundle\Model\EditableTranslation;
  6. use PN\LocaleBundle\Model\TranslationEntity;
  7. /**
  8. * @ORM\Entity
  9. * @ORM\Table(name="banner_translations")
  10. */
  11. class BannerTranslation extends TranslationEntity implements EditableTranslation
  12. {
  13. /**
  14. * @ORM\Column(name="title", type="string", length=50)
  15. */
  16. private ?string $title = null;
  17. /**
  18. * @ORM\Column(name="sub_title", type="string", length=35,nullable=true)
  19. */
  20. private ?string $subTitle = null;
  21. /**
  22. * @ORM\Column(name="url", type="string", length=255, nullable=true)
  23. */
  24. private ?string $url = null;
  25. /**
  26. * @ORM\Column(name="text", type="string", length=255, nullable=true)
  27. */
  28. private ?string $text = null;
  29. /**
  30. * @ORM\Column(name="actionButton", type="string", length=20, nullable=true)
  31. */
  32. private string $actionButton = 'عرض';
  33. /**
  34. * @var
  35. * @ORM\Id
  36. * @ORM\ManyToOne(targetEntity="App\CMSBundle\Entity\Banner", inversedBy="translations")
  37. */
  38. protected $translatable;
  39. /**
  40. * @var Language
  41. * @ORM\Id
  42. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  43. */
  44. protected $language;
  45. public function setTitle(?string $title): self
  46. {
  47. $this->title = $title;
  48. return $this;
  49. }
  50. public function getTitle(): ?string
  51. {
  52. return $this->title;
  53. }
  54. public function setSubTitle(?string $subTitle): self
  55. {
  56. $this->subTitle = $subTitle;
  57. return $this;
  58. }
  59. public function getSubTitle(): ?string
  60. {
  61. return $this->subTitle;
  62. }
  63. public function setUrl(?string $url): self
  64. {
  65. $this->url = $url;
  66. return $this;
  67. }
  68. public function getUrl(): ?string
  69. {
  70. return $this->url;
  71. }
  72. public function setText(string $text): static
  73. {
  74. $this->text = $text;
  75. return $this;
  76. }
  77. public function getText(): ?string
  78. {
  79. return $this->text;
  80. }
  81. public function getActionButton(): ?string
  82. {
  83. return $this->actionButton;
  84. }
  85. public function setActionButton(?string $actionButton): self
  86. {
  87. $this->actionButton = $actionButton;
  88. return $this;
  89. }
  90. }