src/Entity/Slider.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SliderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSliderRepository::class)]
  6. class Slider
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $img null;
  14.     #[ORM\Column]
  15.     private ?int $ordre null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $url null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $titre null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getImg(): ?string
  25.     {
  26.         return $this->img;
  27.     }
  28.     public function setImg(string $img): static
  29.     {
  30.         $this->img $img;
  31.         return $this;
  32.     }
  33.     public function getOrdre(): ?int
  34.     {
  35.         return $this->ordre;
  36.     }
  37.     public function setOrdre(int $ordre): static
  38.     {
  39.         $this->ordre $ordre;
  40.         return $this;
  41.     }
  42.     public function getUrl(): ?string
  43.     {
  44.         return $this->url;
  45.     }
  46.     public function setUrl(string $url): static
  47.     {
  48.         $this->url $url;
  49.         return $this;
  50.     }
  51.     public function getTitre(): ?string
  52.     {
  53.         return $this->titre;
  54.     }
  55.     public function setTitre(string $titre): static
  56.     {
  57.         $this->titre $titre;
  58.         return $this;
  59.     }
  60. }