src/Entity/DevisVehicleDetails.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DevisVehicleDetailsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DevisVehicleDetailsRepository::class)
  7.  */
  8. class DevisVehicleDetails
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="date", nullable=true)
  18.      */
  19.     private $day;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $departureAddress;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $destinationAddress;
  28.     /**
  29.      * @ORM\Column(type="time", nullable=true)
  30.      */
  31.     private $departureTime;
  32.     /**
  33.      * @ORM\Column(type="time", nullable=true)
  34.      */
  35.     private $returnTime;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=Devis::class, inversedBy="vehicleDetails")
  38.      * @ORM\JoinColumn(nullable=false)
  39.      */
  40.     private $devis;
  41.     /**
  42.      * @ORM\Column(type="text", nullable=true)
  43.      */
  44.     private $infos;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getDay(): ?\DateTimeInterface
  50.     {
  51.         return $this->day;
  52.     }
  53.     public function setDay(?\DateTimeInterface $day): self
  54.     {
  55.         $this->day $day;
  56.         return $this;
  57.     }
  58.     public function getDepartureAddress(): ?string
  59.     {
  60.         return $this->departureAddress;
  61.     }
  62.     public function setDepartureAddress(?string $departureAddress): self
  63.     {
  64.         $this->departureAddress $departureAddress;
  65.         return $this;
  66.     }
  67.     public function getDestinationAddress(): ?string
  68.     {
  69.         return $this->destinationAddress;
  70.     }
  71.     public function setDestinationAddress(?string $destinationAddress): self
  72.     {
  73.         $this->destinationAddress $destinationAddress;
  74.         return $this;
  75.     }
  76.     public function getDepartureTime(): ?\DateTimeInterface
  77.     {
  78.         return $this->departureTime;
  79.     }
  80.     public function setDepartureTime(?\DateTimeInterface $departureTime): self
  81.     {
  82.         $this->departureTime $departureTime;
  83.         return $this;
  84.     }
  85.     public function getReturnTime(): ?\DateTimeInterface
  86.     {
  87.         return $this->returnTime;
  88.     }
  89.     public function setReturnTime(?\DateTimeInterface $returnTime): self
  90.     {
  91.         $this->returnTime $returnTime;
  92.         return $this;
  93.     }
  94.     public function getDevis(): ?Devis
  95.     {
  96.         return $this->devis;
  97.     }
  98.     public function setDevis(?Devis $devis): self
  99.     {
  100.         $this->devis $devis;
  101.         return $this;
  102.     }
  103.     public function getInfos(): ?string
  104.     {
  105.         return $this->infos;
  106.     }
  107.     public function setInfos(?string $infos): self
  108.     {
  109.         $this->infos $infos;
  110.         return $this;
  111.     }
  112. }