<?php
namespace App\Entity;
use App\Repository\VehiculeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VehiculeRepository::class)]
class Vehicule
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 50)]
private ?string $marque = null;
#[ORM\Column(length: 50)]
private ?string $modele = null;
#[ORM\Column(length: 50)]
private ?string $annee = null;
#[ORM\Column(type: Types::SMALLINT)]
private ?int $capacite = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $immatriculation = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?Equipement $equipements = null;
#[ORM\ManyToOne(inversedBy: 'vehicules')]
private ?User $user = null;
public function getId(): ?int
{
return $this->id;
}
public function getMarque(): ?string
{
return $this->marque;
}
public function setMarque(string $marque): self
{
$this->marque = $marque;
return $this;
}
public function getModele(): ?string
{
return $this->modele;
}
public function setModele(string $modele): self
{
$this->modele = $modele;
return $this;
}
public function getAnnee(): ?string
{
return $this->annee;
}
public function setAnnee(string $annee): self
{
$this->annee = $annee;
return $this;
}
public function getCapacite(): ?int
{
return $this->capacite;
}
public function setCapacite(int $capacite): self
{
$this->capacite = $capacite;
return $this;
}
public function getImmatriculation(): ?string
{
return $this->immatriculation;
}
public function setImmatriculation(?string $immatriculation): self
{
$this->immatriculation = $immatriculation;
return $this;
}
public function getEquipements(): ?Equipement
{
return $this->equipements;
}
public function setEquipements(?Equipement $equipements): self
{
$this->equipements = $equipements;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}