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.

36 lines
627B

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