src/Entity/Vehicule.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VehiculeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassVehiculeRepository::class)]
  7. class Vehicule
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length50)]
  14.     private ?string $marque null;
  15.     #[ORM\Column(length50)]
  16.     private ?string $modele null;
  17.     #[ORM\Column(length50)]
  18.     private ?string $annee null;
  19.     #[ORM\Column(typeTypes::SMALLINT)]
  20.     private ?int $capacite null;
  21.     #[ORM\Column(length50nullabletrue)]
  22.     private ?string $immatriculation null;
  23.     #[ORM\ManyToOne]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?Equipement $equipements null;
  26.     #[ORM\ManyToOne(inversedBy'vehicules')]
  27.     private ?User $user null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getMarque(): ?string
  33.     {
  34.         return $this->marque;
  35.     }
  36.     public function setMarque(string $marque): self
  37.     {
  38.         $this->marque $marque;
  39.         return $this;
  40.     }
  41.     public function getModele(): ?string
  42.     {
  43.         return $this->modele;
  44.     }
  45.     public function setModele(string $modele): self
  46.     {
  47.         $this->modele $modele;
  48.         return $this;
  49.     }
  50.     public function getAnnee(): ?string
  51.     {
  52.         return $this->annee;
  53.     }
  54.     public function setAnnee(string $annee): self
  55.     {
  56.         $this->annee $annee;
  57.         return $this;
  58.     }
  59.     public function getCapacite(): ?int
  60.     {
  61.         return $this->capacite;
  62.     }
  63.     public function setCapacite(int $capacite): self
  64.     {
  65.         $this->capacite $capacite;
  66.         return $this;
  67.     }
  68.     public function getImmatriculation(): ?string
  69.     {
  70.         return $this->immatriculation;
  71.     }
  72.     public function setImmatriculation(?string $immatriculation): self
  73.     {
  74.         $this->immatriculation $immatriculation;
  75.         return $this;
  76.     }
  77.     public function getEquipements(): ?Equipement
  78.     {
  79.         return $this->equipements;
  80.     }
  81.     public function setEquipements(?Equipement $equipements): self
  82.     {
  83.         $this->equipements $equipements;
  84.         return $this;
  85.     }
  86.     public function getUser(): ?User
  87.     {
  88.         return $this->user;
  89.     }
  90.     public function setUser(?User $user): self
  91.     {
  92.         $this->user $user;
  93.         return $this;
  94.     }
  95. }