63 rindas
1.3KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. trait SeoTrait
  5. {
  6. /**
  7. * @ORM\Column(type="string", length=255, nullable=true)
  8. */
  9. protected $metaTitle;
  10. /**
  11. * @ORM\Column(type="text", nullable=true)
  12. */
  13. protected $metaDescription;
  14. /**
  15. * @var array
  16. * @ORM\Column(type="array", nullable=true)
  17. */
  18. protected $oldUrls;
  19. public function getMetaTitle(): ?string
  20. {
  21. return $this->metaTitle;
  22. }
  23. public function setMetaTitle(?string $metaTitle): self
  24. {
  25. $this->metaTitle = $metaTitle;
  26. return $this;
  27. }
  28. public function getMetaDescription(): ?string
  29. {
  30. return $this->metaDescription;
  31. }
  32. public function setMetaDescription(?string $metaDescription): self
  33. {
  34. $this->metaDescription = $metaDescription;
  35. return $this;
  36. }
  37. public function setOldUrls($oldUrls): self
  38. {
  39. $this->oldUrls = $oldUrls;
  40. return $this;
  41. }
  42. public function getOldUrls(): ?array
  43. {
  44. return $this->oldUrls;
  45. }
  46. }