src/Entity/Header.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HeaderRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassHeaderRepository::class)]
  7. class Header
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $title null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $content null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $btnTitle null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $btnUrl null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $illustration null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getTitle(): ?string
  28.     {
  29.         return $this->title;
  30.     }
  31.     public function setTitle(string $title): self
  32.     {
  33.         $this->title $title;
  34.         return $this;
  35.     }
  36.     public function getContent(): ?string
  37.     {
  38.         return $this->content;
  39.     }
  40.     public function setContent(string $content): self
  41.     {
  42.         $this->content $content;
  43.         return $this;
  44.     }
  45.     public function getBtnTitle(): ?string
  46.     {
  47.         return $this->btnTitle;
  48.     }
  49.     public function setBtnTitle(string $btnTitle): self
  50.     {
  51.         $this->btnTitle $btnTitle;
  52.         return $this;
  53.     }
  54.     public function getBtnUrl(): ?string
  55.     {
  56.         return $this->btnUrl;
  57.     }
  58.     public function setBtnUrl(string $btnUrl): self
  59.     {
  60.         $this->btnUrl $btnUrl;
  61.         return $this;
  62.     }
  63.     public function getIllustration(): ?string
  64.     {
  65.         return $this->illustration;
  66.     }
  67.     public function setIllustration(string $illustration): self
  68.     {
  69.         $this->illustration $illustration;
  70.         return $this;
  71.     }
  72. }