src/Entity/Slider.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SliderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SliderRepository::class)
  7.  */
  8. class Slider
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $image;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $title;
  24.     /**
  25.      * @ORM\Column(type="text")
  26.      */
  27.     private $description;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $url;
  32.     /**
  33.      * @ORM\Column(type="string", length=100, nullable=true)
  34.      */
  35.     private $ctaLabel;
  36.     /**
  37.      * @ORM\Column(type="boolean", nullable=true)
  38.      */
  39.     private $isActive;
  40.     /**
  41.      * @ORM\Column(name="`order`",type="integer")
  42.      */
  43.     private $order;
  44.     /**
  45.      * @ORM\Column(type="string", length=32, options={"default":"full"})
  46.      */
  47.     private $displayMode 'full';
  48.     // Getters and Setters
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getImage(): ?string
  54.     {
  55.         return $this->image;
  56.     }
  57.     public function setImage(string $image): self
  58.     {
  59.         $this->image $image;
  60.         return $this;
  61.     }
  62.     public function getTitle(): ?string
  63.     {
  64.         return $this->title;
  65.     }
  66.     public function setTitle(string $title): self
  67.     {
  68.         $this->title $title;
  69.         return $this;
  70.     }
  71.     public function getDescription(): ?string
  72.     {
  73.         return $this->description;
  74.     }
  75.     public function setDescription(string $description): self
  76.     {
  77.         $this->description $description;
  78.         return $this;
  79.     }
  80.     public function getUrl(): ?string
  81.     {
  82.         return $this->url;
  83.     }
  84.     public function setUrl(string $url): self
  85.     {
  86.         $this->url $url;
  87.         return $this;
  88.     }
  89.     public function getCtaLabel(): ?string
  90.     {
  91.         return $this->ctaLabel;
  92.     }
  93.     public function setCtaLabel(?string $ctaLabel): self
  94.     {
  95.         $this->ctaLabel $ctaLabel;
  96.         return $this;
  97.     }
  98.     public function getIsActive(): ?bool
  99.     {
  100.         return $this->isActive;
  101.     }
  102.     public function setIsActive(?bool $isActive): self
  103.     {
  104.         $this->isActive $isActive;
  105.         return $this;
  106.     }
  107.     public function getOrder(): ?int
  108.     {
  109.         return $this->order;
  110.     }
  111.     public function setOrder(int $order): self
  112.     {
  113.         $this->order $order;
  114.         return $this;
  115.     }
  116.     public function getDisplayMode(): ?string
  117.     {
  118.         return $this->displayMode;
  119.     }
  120.     public function setDisplayMode(string $displayMode): self
  121.     {
  122.         $this->displayMode $displayMode;
  123.         return $this;
  124.     }
  125. }