src/Entity/Gallery.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GalleryRepository;
  4. use App\Traits\CommonTrt;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=GalleryRepository::class)
  8.  * @ORM\Table(indexes={@ORM\Index(columns={"title"}, flags={"fulltext"}), @ORM\Index(columns={"slug"}, flags={"fulltext"}), @ORM\Index(columns={"content"}, flags={"fulltext"}) })
  9.  */
  10. class Gallery
  11. {
  12.     use CommonTrt;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $title;
  23.     /**
  24.      * @ORM\Column(type="text", nullable=true)
  25.      */
  26.     private $content;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $slug;
  31.     /**
  32.      * @ORM\Column(type="boolean")
  33.      */
  34.     private $isActive;
  35.     /**
  36.      * @ORM\Column(type="json", nullable=true)
  37.      */
  38.     private $images = [];
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $illustration;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $bannerImg;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getTitle(): ?string
  52.     {
  53.         return $this->title;
  54.     }
  55.     public function setTitle(string $title): self
  56.     {
  57.         $this->title = $title;
  58.         return $this;
  59.     }
  60.     public function getContent(): ?string
  61.     {
  62.         return $this->content;
  63.     }
  64.     public function setContent(?string $content): self
  65.     {
  66.         $this->content = $content;
  67.         return $this;
  68.     }
  69.     public function getSlug(): ?string
  70.     {
  71.         return $this->slug;
  72.     }
  73.     public function setSlug(string $slug): self
  74.     {
  75.         $this->slug = $slug;
  76.         return $this;
  77.     }
  78.     public function isIsActive(): ?bool
  79.     {
  80.         return $this->isActive;
  81.     }
  82.     public function setIsActive(bool $isActive): self
  83.     {
  84.         $this->isActive = $isActive;
  85.         return $this;
  86.     }
  87.     public function getImages(): ?array
  88.     {
  89.         return $this->images;
  90.     }
  91.     public function setImages(?array $images): self
  92.     {
  93.         $this->images = $images;
  94.         return $this;
  95.     }
  96.     public function getIllustration(): ?string
  97.     {
  98.         return $this->illustration;
  99.     }
  100.     public function setIllustration(?string $illustration): self
  101.     {
  102.         $this->illustration = $illustration;
  103.         return $this;
  104.     }
  105.     public function getBannerImg(): ?string
  106.     {
  107.         return $this->bannerImg;
  108.     }
  109.     public function setBannerImg(?string $bannerImg): self
  110.     {
  111.         $this->bannerImg = $bannerImg;
  112.         return $this;
  113.     }
  114. }