<?php
namespace App\Entity;
use App\Repository\HomeSliderRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: HomeSliderRepository::class)]
class HomeSlider
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $title;
#[ORM\Column(type: 'text', nullable: true)]
private $description;
#[ORM\Column(type: 'string', length: 255)]
private $image;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $link;
#[ORM\Column(type: 'integer', nullable: true)]
private $unit;
#[ORM\Column(type: 'boolean')]
private $original;
#[ORM\ManyToOne(targetEntity: WebsiteLanguage::class, inversedBy: 'homeSliders')]
private $websiteLanguage;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $number;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getImage()
{
return $this->image;
}
public function setImage($image): self
{
$this->image = $image;
return $this;
}
public function getLink(): ?string
{
return $this->link;
}
public function setLink(?string $link): self
{
$this->link = $link;
return $this;
}
public function getUnit(): ?int
{
return $this->unit;
}
public function setUnit(?int $unit): self
{
$this->unit = $unit;
return $this;
}
public function getOriginal(): ?bool
{
return $this->original;
}
public function setOriginal(bool $original): self
{
$this->original = $original;
return $this;
}
public function getWebsiteLanguage(): ?WebsiteLanguage
{
return $this->websiteLanguage;
}
public function setWebsiteLanguage(?WebsiteLanguage $websiteLanguage): self
{
$this->websiteLanguage = $websiteLanguage;
return $this;
}
public function getNumber(): ?string
{
return $this->number;
}
public function setNumber(string $number): self
{
$this->number = $number;
return $this;
}
}