Page.php 779 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PageRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: PageRepository::class)]
  7. class Page
  8. {
  9. #[ORM\Id]
  10. #[ORM\Column(type: Types::STRING, length: 255)]
  11. private ?string $name = null;
  12. #[ORM\Column(type: Types::TEXT)]
  13. private ?string $content = null;
  14. public function getName(): ?string
  15. {
  16. return $this->name;
  17. }
  18. public function setName(string $name): self
  19. {
  20. $this->name = $name;
  21. return $this;
  22. }
  23. public function getContent(): ?string
  24. {
  25. return $this->content;
  26. }
  27. public function setContent(string $content): self
  28. {
  29. $this->content = $content;
  30. return $this;
  31. }
  32. }