vendor/perfectneeds/seo-multi-lang-bundle/Entity/Translation/SeoPageTranslation.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_page_translations")
  9. */
  10. class SeoPageTranslation extends TranslationEntity implements EditableTranslation {
  11. /**
  12. * @ORM\Column(name="brief", type="text", nullable=true)
  13. */
  14. private ?string $brief = null;
  15. /**
  16. * @ORM\Id
  17. * @ORM\ManyToOne(targetEntity="PN\SeoBundle\Entity\SeoPage", inversedBy="translations")
  18. */
  19. protected $translatable;
  20. /**
  21. * @ORM\Id
  22. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  23. */
  24. protected $language;
  25. public function setBrief(?string $brief): self
  26. {
  27. $this->brief = $brief;
  28. return $this;
  29. }
  30. public function getBrief(): ?string
  31. {
  32. return $this->brief;
  33. }
  34. }