<?php
namespace App\Entity;
use App\Repository\DevisVehicleDetailsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DevisVehicleDetailsRepository::class)
*/
class DevisVehicleDetails
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $day;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $departureAddress;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $destinationAddress;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $departureTime;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $returnTime;
/**
* @ORM\ManyToOne(targetEntity=Devis::class, inversedBy="vehicleDetails")
* @ORM\JoinColumn(nullable=false)
*/
private $devis;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $infos;
public function getId(): ?int
{
return $this->id;
}
public function getDay(): ?\DateTimeInterface
{
return $this->day;
}
public function setDay(?\DateTimeInterface $day): self
{
$this->day = $day;
return $this;
}
public function getDepartureAddress(): ?string
{
return $this->departureAddress;
}
public function setDepartureAddress(?string $departureAddress): self
{
$this->departureAddress = $departureAddress;
return $this;
}
public function getDestinationAddress(): ?string
{
return $this->destinationAddress;
}
public function setDestinationAddress(?string $destinationAddress): self
{
$this->destinationAddress = $destinationAddress;
return $this;
}
public function getDepartureTime(): ?\DateTimeInterface
{
return $this->departureTime;
}
public function setDepartureTime(?\DateTimeInterface $departureTime): self
{
$this->departureTime = $departureTime;
return $this;
}
public function getReturnTime(): ?\DateTimeInterface
{
return $this->returnTime;
}
public function setReturnTime(?\DateTimeInterface $returnTime): self
{
$this->returnTime = $returnTime;
return $this;
}
public function getDevis(): ?Devis
{
return $this->devis;
}
public function setDevis(?Devis $devis): self
{
$this->devis = $devis;
return $this;
}
public function getInfos(): ?string
{
return $this->infos;
}
public function setInfos(?string $infos): self
{
$this->infos = $infos;
return $this;
}
}