src/Entity/GalleryItem.php line 13

Open in your IDE?
  1. <?php
  2. // src/AppBundle/Entity/GalleryItem.php
  3. namespace App\Entity;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\EntityRepo\GalleryItemRepo")
  8.  * @ORM\Table(name="gallery_item")
  9.  */
  10. class GalleryItem
  11. {
  12.     /**
  13.      * @ORM\Column(type="integer")
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */ 
  17.     protected $galleryItemId=0;
  18.     /**
  19.      * @ORM\Column(type="integer")
  20.      */     
  21.     protected $galleryId=0;
  22.     
  23.     /**
  24.      * @ORM\Column(type="string", length=100, nullable=true)
  25.      */
  26.     protected $galleryItemName;
  27.     /**
  28.      * @ORM\Column(type="text", nullable=true)
  29.      */
  30.     protected $galleryItemDescription;    
  31.     
  32.     /**
  33.      * @ORM\Column(type="text", length=255, nullable=true)
  34.      */
  35.     protected $galleryItemFile;    
  36.     
  37.     /**
  38.      * @ORM\Column(type="integer", nullable=true)
  39.      */
  40.     protected $priority;    
  41.     
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     protected $clickURL;    
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     protected $slideClickURL;
  50.     public function getGalleryItemId(): ?int
  51.     {
  52.         return $this->galleryItemId;
  53.     }
  54.     public function getGalleryId(): ?int
  55.     {
  56.         return $this->galleryId;
  57.     }
  58.     public function setGalleryId(int $galleryId): static
  59.     {
  60.         $this->galleryId $galleryId;
  61.         return $this;
  62.     }
  63.     public function getGalleryItemName(): ?string
  64.     {
  65.         return $this->galleryItemName;
  66.     }
  67.     public function setGalleryItemName(?string $galleryItemName): static
  68.     {
  69.         $this->galleryItemName $galleryItemName;
  70.         return $this;
  71.     }
  72.     public function getGalleryItemDescription(): ?string
  73.     {
  74.         return $this->galleryItemDescription;
  75.     }
  76.     public function setGalleryItemDescription(?string $galleryItemDescription): static
  77.     {
  78.         $this->galleryItemDescription $galleryItemDescription;
  79.         return $this;
  80.     }
  81.     public function getGalleryItemFile(): ?string
  82.     {
  83.         return $this->galleryItemFile;
  84.     }
  85.     public function setGalleryItemFile(?string $galleryItemFile): static
  86.     {
  87.         $this->galleryItemFile $galleryItemFile;
  88.         return $this;
  89.     }
  90.     public function getPriority(): ?int
  91.     {
  92.         return $this->priority;
  93.     }
  94.     public function setPriority(?int $priority): static
  95.     {
  96.         $this->priority $priority;
  97.         return $this;
  98.     }
  99.     public function getClickURL(): ?string
  100.     {
  101.         return $this->clickURL;
  102.     }
  103.     public function setClickURL(?string $clickURL): static
  104.     {
  105.         $this->clickURL $clickURL;
  106.         return $this;
  107.     }
  108.     public function getSlideClickURL(): ?string
  109.     {
  110.         return $this->slideClickURL;
  111.     }
  112.     public function setSlideClickURL(?string $slideClickURL): static
  113.     {
  114.         $this->slideClickURL $slideClickURL;
  115.         return $this;
  116.     }  
  117. }