src/Entity/Slider.php line 9
<?php
namespace App\Entity;
use App\Repository\SliderRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SliderRepository::class)]
class Slider
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $img = null;
#[ORM\Column]
private ?int $ordre = null;
#[ORM\Column(length: 255)]
private ?string $url = null;
#[ORM\Column(length: 255)]
private ?string $titre = null;
public function getId(): ?int
{
return $this->id;
}
public function getImg(): ?string
{
return $this->img;
}
public function setImg(string $img): static
{
$this->img = $img;
return $this;
}
public function getOrdre(): ?int
{
return $this->ordre;
}
public function setOrdre(int $ordre): static
{
$this->ordre = $ordre;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(string $url): static
{
$this->url = $url;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): static
{
$this->titre = $titre;
return $this;
}
}