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="boolean", nullable=true)
  34.      */
  35.     private $isActive;
  36.     /**
  37.      * @ORM\Column(name="`order`",type="integer")
  38.      */
  39.     private $order;
  40.     // Getters and Setters
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getImage(): ?string
  46.     {
  47.         return $this->image;
  48.     }
  49.     public function setImage(string $image): self
  50.     {
  51.         $this->image $image;
  52.         return $this;
  53.     }
  54.     public function getTitle(): ?string
  55.     {
  56.         return $this->title;
  57.     }
  58.     public function setTitle(string $title): self
  59.     {
  60.         $this->title $title;
  61.         return $this;
  62.     }
  63.     public function getDescription(): ?string
  64.     {
  65.         return $this->description;
  66.     }
  67.     public function setDescription(string $description): self
  68.     {
  69.         $this->description $description;
  70.         return $this;
  71.     }
  72.     public function getUrl(): ?string
  73.     {
  74.         return $this->url;
  75.     }
  76.     public function setUrl(string $url): self
  77.     {
  78.         $this->url $url;
  79.         return $this;
  80.     }
  81.     public function getIsActive(): ?bool
  82.     {
  83.         return $this->isActive;
  84.     }
  85.     public function setIsActive(?bool $isActive): self
  86.     {
  87.         $this->isActive $isActive;
  88.         return $this;
  89.     }
  90.     public function getOrder(): ?int
  91.     {
  92.         return $this->order;
  93.     }
  94.     public function setOrder(int $order): self
  95.     {
  96.         $this->order $order;
  97.         return $this;
  98.     }
  99. }