您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

36 行
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. }