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