src/Entity/Headers.php line 9

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