12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace App\Entity;
- use App\Repository\PageRepository;
- use Doctrine\DBAL\Types\Types;
- use Doctrine\ORM\Mapping as ORM;
- #[ORM\Entity(repositoryClass: PageRepository::class)]
- class Page
- {
- #[ORM\Id]
- #[ORM\Column(type: Types::STRING, length: 255)]
- private ?string $name = null;
- #[ORM\Column(type: Types::TEXT)]
- private ?string $content = null;
- public function getName(): ?string
- {
- return $this->name;
- }
- public function setName(string $name): self
- {
- $this->name = $name;
- return $this;
- }
- public function getContent(): ?string
- {
- return $this->content;
- }
- public function setContent(string $content): self
- {
- $this->content = $content;
- return $this;
- }
- }
|