src/Entity/Header.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HeaderRepository;
  4. use App\Traits\CommonTrt;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=HeaderRepository::class)
  8.  */
  9. class Header
  10. {
  11.     use CommonTrt;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $title;
  22.     /**
  23.      * @ORM\Column(type="text", nullable=true)
  24.      */
  25.     private $subtitle;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $bannerImg;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $textbutton;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $slug;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $content;
  42.     /**
  43.      * @ORM\Column(type="boolean")
  44.      */
  45.     private $isActive;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $idname;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $url;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $imageTop;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $imageBottom;
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getTitle(): ?string
  67.     {
  68.         return $this->title;
  69.     }
  70.     public function setTitle(string $title): self
  71.     {
  72.         $this->title = $title;
  73.         return $this;
  74.     }
  75.     public function getSubtitle(): ?string
  76.     {
  77.         return $this->subtitle;
  78.     }
  79.     public function setSubtitle(?string $subtitle): self
  80.     {
  81.         $this->subtitle = $subtitle;
  82.         return $this;
  83.     }
  84.     public function getBannerImg(): ?string
  85.     {
  86.         return $this->bannerImg;
  87.     }
  88.     public function setBannerImg(?string $bannerImg): self
  89.     {
  90.         $this->bannerImg = $bannerImg;
  91.         return $this;
  92.     }
  93.     public function getTextbutton(): ?string
  94.     {
  95.         return $this->textbutton;
  96.     }
  97.     public function setTextbutton(?string $textbutton): self
  98.     {
  99.         $this->textbutton = $textbutton;
  100.         return $this;
  101.     }
  102.     public function getSlug(): ?string
  103.     {
  104.         return $this->slug;
  105.     }
  106.     public function setSlug(string $slug): self
  107.     {
  108.         $this->slug = $slug;
  109.         return $this;
  110.     }
  111.     public function getContent(): ?string
  112.     {
  113.         return $this->content;
  114.     }
  115.     public function setContent(?string $content): self
  116.     {
  117.         $this->content = $content;
  118.         return $this;
  119.     }
  120.     public function isIsActive(): ?bool
  121.     {
  122.         return $this->isActive;
  123.     }
  124.     public function setIsActive(bool $isActive): self
  125.     {
  126.         $this->isActive = $isActive;
  127.         return $this;
  128.     }
  129.     public function getIdname(): ?string
  130.     {
  131.         return $this->idname;
  132.     }
  133.     public function setIdname(?string $idname): self
  134.     {
  135.         $this->idname = $idname;
  136.         return $this;
  137.     }
  138.     public function getUrl(): ?string
  139.     {
  140.         return $this->url;
  141.     }
  142.     public function setUrl(?string $url): self
  143.     {
  144.         $this->url = $url;
  145.         return $this;
  146.     }
  147.     public function getImageTop(): ?string
  148.     {
  149.         return $this->imageTop;
  150.     }
  151.     public function setImageTop(?string $imageTop): self
  152.     {
  153.         $this->imageTop = $imageTop;
  154.         return $this;
  155.     }
  156.     public function getImageBottom(): ?string
  157.     {
  158.         return $this->imageBottom;
  159.     }
  160.     public function setImageBottom(?string $imageBottom): self
  161.     {
  162.         $this->imageBottom = $imageBottom;
  163.         return $this;
  164.     }
  165. }