src/Entity/SousCategories.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SousCategoriesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSousCategoriesRepository::class)]
  6. class SousCategories
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $titre null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $urlImg null;
  16.     #[ORM\Column]
  17.     private ?int $idCategorie null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getTitre(): ?string
  23.     {
  24.         return $this->titre;
  25.     }
  26.     public function setTitre(string $titre): static
  27.     {
  28.         $this->titre $titre;
  29.         return $this;
  30.     }
  31.     public function getUrlImg(): ?string
  32.     {
  33.         return $this->urlImg;
  34.     }
  35.     public function setUrlImg(string $urlImg): static
  36.     {
  37.         $this->urlImg $urlImg;
  38.         return $this;
  39.     }
  40.     public function getIdCategorie(): ?int
  41.     {
  42.         return $this->idCategorie;
  43.     }
  44.     public function setIdCategorie(int $idCategorie): static
  45.     {
  46.         $this->idCategorie $idCategorie;
  47.         return $this;
  48.     }
  49. }