You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Lc\SovBundle\Model\Site;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
  5. use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface;
  6. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  7. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  8. use Lc\SovBundle\Doctrine\Pattern\AbstractFullEntity;
  9. /**
  10. * @ORM\MappedSuperclass()
  11. */
  12. abstract class PageModel extends AbstractFullEntity implements PageInterface
  13. {
  14. /**
  15. * @ORM\Column(type="text", nullable=true)
  16. */
  17. protected $content;
  18. public function __toString()
  19. {
  20. return $this->getTitle();
  21. }
  22. public function getContent(): ?string
  23. {
  24. return $this->content;
  25. }
  26. public function setContent(?string $content): self
  27. {
  28. $this->content = $content;
  29. return $this;
  30. }
  31. }