src/Entity/Images.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CodeTrait;
  4. use App\Repository\ImagesRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassImagesRepository::class)]
  7. class Images
  8. {
  9.     use CodeTrait ;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column()]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $nom null;
  16.     #[ORM\ManyToOne(inversedBy'images')]
  17.     #[ORM\JoinColumn(nullabletrue)]
  18.     private ?Articles $article null;
  19.     #[ORM\ManyToOne(inversedBy'images')]
  20.     private ?Immeubles $immeuble null;
  21.     #[ORM\ManyToOne(inversedBy'imagesVh')]
  22.     private ?Vehicules $vehicule null;
  23.     #[ORM\ManyToOne(inversedBy'images')]
  24.     private ?Services $service null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getNom(): ?string
  30.     {
  31.         return $this->nom;
  32.     }
  33.     public function setNom(string $nom): self
  34.     {
  35.         $this->nom $nom;
  36.         return $this;
  37.     }
  38.     public function getArticle(): ?Articles
  39.     {
  40.         return $this->article;
  41.     }
  42.     public function setArticle(?Articles $article): self
  43.     {
  44.         $this->article $article;
  45.         return $this;
  46.     }
  47.     public function getImmeuble(): ?Immeubles
  48.     {
  49.         return $this->immeuble;
  50.     }
  51.     public function setImmeuble(?Immeubles $immeuble): self
  52.     {
  53.         $this->immeuble $immeuble;
  54.         return $this;
  55.     }
  56.     public function getVehicule(): ?Vehicules
  57.     {
  58.         return $this->vehicule;
  59.     }
  60.     public function setVehicule(?Vehicules $vehicule): self
  61.     {
  62.         $this->vehicule $vehicule;
  63.         return $this;
  64.     }
  65.     public function getService(): ?Services
  66.     {
  67.         return $this->service;
  68.     }
  69.     public function setService(?Services $service): static
  70.     {
  71.         $this->service $service;
  72.         return $this;
  73.     }
  74. }