<?php
namespace App\Entity;
use App\Entity\Trait\CodeTrait;
use App\Repository\ImagesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ImagesRepository::class)]
class Images
{
use CodeTrait ;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column()]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $nom = null;
#[ORM\ManyToOne(inversedBy: 'images')]
#[ORM\JoinColumn(nullable: true)]
private ?Articles $article = null;
#[ORM\ManyToOne(inversedBy: 'images')]
private ?Immeubles $immeuble = null;
#[ORM\ManyToOne(inversedBy: 'imagesVh')]
private ?Vehicules $vehicule = null;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getArticle(): ?Articles
{
return $this->article;
}
public function setArticle(?Articles $article): self
{
$this->article = $article;
return $this;
}
public function getImmeuble(): ?Immeubles
{
return $this->immeuble;
}
public function setImmeuble(?Immeubles $immeuble): self
{
$this->immeuble = $immeuble;
return $this;
}
public function getVehicule(): ?Vehicules
{
return $this->vehicule;
}
public function setVehicule(?Vehicules $vehicule): self
{
$this->vehicule = $vehicule;
return $this;
}
}