src/Entity/Page.php line 10

Open in your IDE?
  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\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id = null;
  13.     #[ORM\Column(length: 255, unique: true)]
  14.     private ?string $slug = null;
  15.     #[ORM\Column(length: 255)]
  16.     private ?string $title = null;
  17.     #[ORM\Column(length: 255, nullable: true)]
  18.     private ?string $metaDescription = null;
  19.     #[ORM\Column(length: 255)]
  20.     private ?string $h1 = null;
  21.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  22.     private ?string $introText = null;
  23.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  24.     private ?string $content = null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getSlug(): ?string
  30.     {
  31.         return $this->slug;
  32.     }
  33.     public function setSlug(string $slug): static
  34.     {
  35.         $this->slug = $slug;
  36.         return $this;
  37.     }
  38.     public function getTitle(): ?string
  39.     {
  40.         return $this->title;
  41.     }
  42.     public function setTitle(string $title): static
  43.     {
  44.         $this->title = $title;
  45.         return $this;
  46.     }
  47.     public function getMetaDescription(): ?string
  48.     {
  49.         return $this->metaDescription;
  50.     }
  51.     public function setMetaDescription(?string $metaDescription): static
  52.     {
  53.         $this->metaDescription = $metaDescription;
  54.         return $this;
  55.     }
  56.     public function getH1(): ?string
  57.     {
  58.         return $this->h1;
  59.     }
  60.     public function setH1(string $h1): static
  61.     {
  62.         $this->h1 = $h1;
  63.         return $this;
  64.     }
  65.     public function getIntroText(): ?string
  66.     {
  67.         return $this->introText;
  68.     }
  69.     public function setIntroText(?string $introText): static
  70.     {
  71.         $this->introText = $introText;
  72.         return $this;
  73.     }
  74.     public function getContent(): ?string
  75.     {
  76.         return $this->content;
  77.     }
  78.     public function setContent(?string $content): static
  79.     {
  80.         $this->content = $content;
  81.         return $this;
  82.     }
  83. }