src/Entity/CamionUser.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CamionUserRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCamionUserRepository::class)]
  7. class CamionUser
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'camionUsers')]
  14.     private ?Camion $camion null;
  15.     #[ORM\ManyToOne(inversedBy'camionUsers')]
  16.     private ?User $user null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  18.     private ?\DateTime $dateDebut null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTime $dateFin null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getCamion(): ?Camion
  26.     {
  27.         return $this->camion;
  28.     }
  29.     public function setCamion(?Camion $camion): self
  30.     {
  31.         $this->camion $camion;
  32.         return $this;
  33.     }
  34.     public function getUser(): ?User
  35.     {
  36.         return $this->user;
  37.     }
  38.     public function setUser(?User $user): self
  39.     {
  40.         $this->user $user;
  41.         return $this;
  42.     }
  43.     public function getDateDebut(): ?\DateTime
  44.     {
  45.         return $this->dateDebut;
  46.     }
  47.     public function setDateDebut(\DateTime $dateDebut): self
  48.     {
  49.         $this->dateDebut $dateDebut;
  50.         return $this;
  51.     }
  52.     public function getDateFin(): ?\DateTime
  53.     {
  54.         return $this->dateFin;
  55.     }
  56.     public function setDateFin(?\DateTime $dateFin): self
  57.     {
  58.         $this->dateFin $dateFin;
  59.         return $this;
  60.     }
  61. }