src/Entity/Banner.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BannerRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=BannerRepository::class)
  7.  */
  8. class Banner
  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, nullable=true)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $image;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $url;
  28.     /**
  29.      * @ORM\Column(type="date", nullable=true)
  30.      */
  31.     private $expirationDate;
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=true)
  34.      */
  35.     private $isActive;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getName(): ?string
  41.     {
  42.         return $this->name;
  43.     }
  44.     public function setName(?string $name): self
  45.     {
  46.         $this->name $name;
  47.         return $this;
  48.     }
  49.     public function getImage(): ?string
  50.     {
  51.         return $this->image;
  52.     }
  53.     public function setImage(?string $image): self
  54.     {
  55.         $this->image $image;
  56.         return $this;
  57.     }
  58.     public function getUrl(): ?string
  59.     {
  60.         return $this->url;
  61.     }
  62.     public function setUrl(?string $url): self
  63.     {
  64.         $this->url $url;
  65.         return $this;
  66.     }
  67.     public function getExpirationDate(): ?\DateTimeInterface
  68.     {
  69.         return $this->expirationDate;
  70.     }
  71.     public function setExpirationDate(?\DateTimeInterface $expirationDate): self
  72.     {
  73.         $this->expirationDate $expirationDate;
  74.         return $this;
  75.     }
  76.     public function getIsActive(): ?bool
  77.     {
  78.         return $this->isActive;
  79.     }
  80.     public function setIsActive(?bool $isActive): self
  81.     {
  82.         $this->isActive $isActive;
  83.         return $this;
  84.     }
  85. }