src/Entity/HomeSlider.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HomeSliderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassHomeSliderRepository::class)]
  6. class HomeSlider
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $title;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private $description;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $image;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $link;
  20.     #[ORM\Column(type'integer'nullabletrue)]
  21.     private $unit;
  22.     #[ORM\Column(type'boolean')]
  23.     private $original;
  24.     #[ORM\ManyToOne(targetEntityWebsiteLanguage::class, inversedBy'homeSliders')]
  25.     private $websiteLanguage;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $number;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getTitle(): ?string
  33.     {
  34.         return $this->title;
  35.     }
  36.     public function setTitle(?string $title): self
  37.     {
  38.         $this->title $title;
  39.         return $this;
  40.     }
  41.     public function getDescription(): ?string
  42.     {
  43.         return $this->description;
  44.     }
  45.     public function setDescription(?string $description): self
  46.     {
  47.         $this->description $description;
  48.         return $this;
  49.     }
  50.     public function getImage()
  51.     {
  52.         return $this->image;
  53.     }
  54.     public function setImage($image): self
  55.     {
  56.         $this->image $image;
  57.         return $this;
  58.     }
  59.     public function getLink(): ?string
  60.     {
  61.         return $this->link;
  62.     }
  63.     public function setLink(?string $link): self
  64.     {
  65.         $this->link $link;
  66.         return $this;
  67.     }
  68.     public function getUnit(): ?int
  69.     {
  70.         return $this->unit;
  71.     }
  72.     public function setUnit(?int $unit): self
  73.     {
  74.         $this->unit $unit;
  75.         return $this;
  76.     }
  77.     public function getOriginal(): ?bool
  78.     {
  79.         return $this->original;
  80.     }
  81.     public function setOriginal(bool $original): self
  82.     {
  83.         $this->original $original;
  84.         return $this;
  85.     }
  86.     public function getWebsiteLanguage(): ?WebsiteLanguage
  87.     {
  88.         return $this->websiteLanguage;
  89.     }
  90.     public function setWebsiteLanguage(?WebsiteLanguage $websiteLanguage): self
  91.     {
  92.         $this->websiteLanguage $websiteLanguage;
  93.         return $this;
  94.     }
  95.     public function getNumber(): ?string
  96.     {
  97.         return $this->number;
  98.     }
  99.     public function setNumber(string $number): self
  100.     {
  101.         $this->number $number;
  102.         return $this;
  103.     }
  104. }