src/Entity/InfoChauffeurDate.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InfoChauffeurDateRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassInfoChauffeurDateRepository::class)]
  7. class InfoChauffeurDate
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  14.     private ?\DateTimeInterface $dateValid null;
  15.     #[ORM\ManyToOne(inversedBy'infoChauffeurDates')]
  16.     private ?User $user null;
  17.     #[ORM\Column]
  18.     private ?int $type null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getDateValid(): ?\DateTimeInterface
  24.     {
  25.         return $this->dateValid;
  26.     }
  27.     public function setDateValid(?\DateTimeInterface $dateValid): self
  28.     {
  29.         $this->dateValid $dateValid;
  30.         return $this;
  31.     }
  32.     public function getUser(): ?User
  33.     {
  34.         return $this->user;
  35.     }
  36.     public function setUser(?User $user): self
  37.     {
  38.         $this->user $user;
  39.         return $this;
  40.     }
  41.     public function getType(): ?int
  42.     {
  43.         return $this->type;
  44.     }
  45.     public function setType(int $type): self
  46.     {
  47.         $this->type $type;
  48.         return $this;
  49.     }
  50. }