src/Entity/Images.php line 10

Open in your IDE?
  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.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getNom(): ?string
  28.     {
  29.         return $this->nom;
  30.     }
  31.     public function setNom(string $nom): self
  32.     {
  33.         $this->nom $nom;
  34.         return $this;
  35.     }
  36.     public function getArticle(): ?Articles
  37.     {
  38.         return $this->article;
  39.     }
  40.     public function setArticle(?Articles $article): self
  41.     {
  42.         $this->article $article;
  43.         return $this;
  44.     }
  45.     public function getImmeuble(): ?Immeubles
  46.     {
  47.         return $this->immeuble;
  48.     }
  49.     public function setImmeuble(?Immeubles $immeuble): self
  50.     {
  51.         $this->immeuble $immeuble;
  52.         return $this;
  53.     }
  54.     public function getVehicule(): ?Vehicules
  55.     {
  56.         return $this->vehicule;
  57.     }
  58.     public function setVehicule(?Vehicules $vehicule): self
  59.     {
  60.         $this->vehicule $vehicule;
  61.         return $this;
  62.     }
  63. }