<?php
namespace App\Entity;
use App\Repository\RendezVousVehiculeRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=RendezVousVehiculeRepository::class)
*/
class RendezVousVehicule
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_immatriculation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_ref_parc;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_num_serie;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_description;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_echeance;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_alert_echeance;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_chronotachygraphe;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_limiteur_vitesse;
/**
* @ORM\Column(type="string", length=255)
*/
private $rdv_vhc_type_proprietaire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_nom_client_proprietaire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_prenom_client_proprietaire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_zone_saisie_1;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_saisie_1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_zone_saisie_2;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_saisie_2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_vhc_zone_saisie_3;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_vhc_date_saisie_3;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $rdv_vhc_date_rdv_prevu;
/**
* @ORM\ManyToOne(targetEntity=Marque::class, inversedBy="rendezVousVehicules", fetch="EAGER")
* @ORM\JoinColumn(nullable=true)
*/
private $marque;
/**
* @ORM\ManyToOne(targetEntity=Modele::class, inversedBy="rendezVousVehicules", fetch="EAGER")
* @ORM\JoinColumn(nullable=true)
*/
private $modele;
/**
* @ORM\OneToMany(targetEntity=RendezVousInfos::class, mappedBy="vehicule")
*/
private $rendezVousInfos;
/**
* @ORM\ManyToOne(targetEntity=TypeVehicule::class, inversedBy="rendezVousVehicules")
*/
private $type_vehicule;
/**
* @ORM\ManyToOne(targetEntity=ClientCompte::class, inversedBy="rendezVousVehicules")
* @ORM\JoinColumn(nullable=true)
*/
private $client_compte;
/**
* @ORM\ManyToOne(targetEntity=Energie::class)
*/
private $energie;
/**
* @ORM\ManyToOne(targetEntity=MarquePl::class)
*/
private $marquePl;
/**
* @ORM\ManyToOne(targetEntity=ModelePl::class)
*/
private $modelePl;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $id_old;
/**
* @ORM\ManyToOne(targetEntity=MarqueCl::class)
*/
private $marque_cl;
/**
* @ORM\ManyToOne(targetEntity=ModeleCl::class)
*/
private $modele_cl;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isActive;
public function __construct()
{
$this->rendezVousInfos = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getRdvVhcImmatriculation(): ?string
{
return $this->rdv_vhc_immatriculation;
}
public function setRdvVhcImmatriculation(?string $rdv_vhc_immatriculation): self
{
$this->rdv_vhc_immatriculation = $rdv_vhc_immatriculation?strtoupper($rdv_vhc_immatriculation):$rdv_vhc_immatriculation;
return $this;
}
public function getRdvVhcRefParc(): ?string
{
return $this->rdv_vhc_ref_parc;
}
public function setRdvVhcRefParc(?string $rdv_vhc_ref_parc): self
{
$this->rdv_vhc_ref_parc = $rdv_vhc_ref_parc;
return $this;
}
public function getRdvVhcNumSerie(): ?string
{
return $this->rdv_vhc_num_serie;
}
public function setRdvVhcNumSerie(?string $rdv_vhc_num_serie): self
{
$this->rdv_vhc_num_serie = $rdv_vhc_num_serie;
return $this;
}
public function getRdvVhcDescription(): ?string
{
return $this->rdv_vhc_description;
}
public function setRdvVhcDescription(?string $rdv_vhc_description): self
{
$this->rdv_vhc_description = $rdv_vhc_description;
return $this;
}
public function getRdvVhcDateEcheance(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_echeance;
}
public function setRdvVhcDateEcheance(?\DateTimeInterface $rdv_vhc_date_echeance): self
{
$this->rdv_vhc_date_echeance = $rdv_vhc_date_echeance;
return $this;
}
public function getRdvVhcDateAlertEcheance(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_alert_echeance;
}
public function setRdvVhcDateAlertEcheance(?\DateTimeInterface $rdv_vhc_date_alert_echeance): self
{
$this->rdv_vhc_date_alert_echeance = $rdv_vhc_date_alert_echeance;
return $this;
}
public function getRdvVhcDateChronotachygraphe(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_chronotachygraphe;
}
public function setRdvVhcDateChronotachygraphe(?\DateTimeInterface $rdv_vhc_date_chronotachygraphe): self
{
$this->rdv_vhc_date_chronotachygraphe = $rdv_vhc_date_chronotachygraphe;
return $this;
}
public function getRdvVhcDateLimiteurVitesse(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_limiteur_vitesse;
}
public function setRdvVhcDateLimiteurVitesse(?\DateTimeInterface $rdv_vhc_date_limiteur_vitesse): self
{
$this->rdv_vhc_date_limiteur_vitesse = $rdv_vhc_date_limiteur_vitesse;
return $this;
}
public function getRdvVhcTypeProprietaire(): ?string
{
return $this->rdv_vhc_type_proprietaire;
}
public function setRdvVhcTypeProprietaire(string $rdv_vhc_type_proprietaire): self
{
$this->rdv_vhc_type_proprietaire = $rdv_vhc_type_proprietaire;
return $this;
}
public function getRdvVhcNomClientProprietaire(): ?string
{
return $this->rdv_vhc_nom_client_proprietaire;
}
public function setRdvVhcNomClientProprietaire(string $rdv_vhc_nom_client_proprietaire): self
{
$this->rdv_vhc_nom_client_proprietaire = $rdv_vhc_nom_client_proprietaire;
return $this;
}
public function getRdvVhcPrenomClientProprietaire(): ?string
{
return $this->rdv_vhc_prenom_client_proprietaire;
}
public function setRdvVhcPrenomClientProprietaire(?string $rdv_vhc_prenom_client_proprietaire): self
{
$this->rdv_vhc_prenom_client_proprietaire = $rdv_vhc_prenom_client_proprietaire;
return $this;
}
public function getRdvVhcZoneSaisie1(): ?string
{
return $this->rdv_vhc_zone_saisie_1;
}
public function setRdvVhcZoneSaisie1(?string $rdv_vhc_zone_saisie_1): self
{
$this->rdv_vhc_zone_saisie_1 = $rdv_vhc_zone_saisie_1;
return $this;
}
public function getRdvVhcDateSaisie1(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_saisie_1;
}
public function setRdvVhcDateSaisie1(?\DateTimeInterface $rdv_vhc_date_saisie_1): self
{
$this->rdv_vhc_date_saisie_1 = $rdv_vhc_date_saisie_1;
return $this;
}
public function getRdvVhcZoneSaisie2(): ?string
{
return $this->rdv_vhc_zone_saisie_2;
}
public function setRdvVhcZoneSaisie2(?string $rdv_vhc_zone_saisie_2): self
{
$this->rdv_vhc_zone_saisie_2 = $rdv_vhc_zone_saisie_2;
return $this;
}
public function getRdvVhcDateSaisie2(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_saisie_2;
}
public function setRdvVhcDateSaisie2(?\DateTimeInterface $rdv_vhc_date_saisie_2): self
{
$this->rdv_vhc_date_saisie_2 = $rdv_vhc_date_saisie_2;
return $this;
}
public function getRdvVhcZoneSaisie3(): ?string
{
return $this->rdv_vhc_zone_saisie_3;
}
public function setRdvVhcZoneSaisie3(?string $rdv_vhc_zone_saisie_3): self
{
$this->rdv_vhc_zone_saisie_3 = $rdv_vhc_zone_saisie_3;
return $this;
}
public function getRdvVhcDateSaisie3(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_saisie_3;
}
public function setRdvVhcDateSaisie3(?\DateTimeInterface $rdv_vhc_date_saisie_3): self
{
$this->rdv_vhc_date_saisie_3 = $rdv_vhc_date_saisie_3;
return $this;
}
public function getRdvVhcDateRdvPrevu(): ?\DateTimeInterface
{
return $this->rdv_vhc_date_rdv_prevu;
}
public function setRdvVhcDateRdvPrevu(?\DateTimeInterface $rdv_vhc_date_rdv_prevu): self
{
$this->rdv_vhc_date_rdv_prevu = $rdv_vhc_date_rdv_prevu;
return $this;
}
public function getMarque(): ?Marque
{
return $this->marque;
}
public function setMarque(?Marque $marque): self
{
$this->marque = $marque;
return $this;
}
public function getModele(): ?Modele
{
return $this->modele;
}
public function setModele(?Modele $modele): self
{
$this->modele = $modele;
return $this;
}
/**
* @return Collection<int, RendezVousInfos>
*/
public function getRendezVousInfos(): Collection
{
return $this->rendezVousInfos;
}
public function addRendezVousInfo(RendezVousInfos $rendezVousInfo): self
{
if (!$this->rendezVousInfos->contains($rendezVousInfo)) {
$this->rendezVousInfos[] = $rendezVousInfo;
$rendezVousInfo->setVehicule($this);
}
return $this;
}
public function removeRendezVousInfo(RendezVousInfos $rendezVousInfo): self
{
if ($this->rendezVousInfos->removeElement($rendezVousInfo)) {
// set the owning side to null (unless already changed)
if ($rendezVousInfo->getVehicule() === $this) {
$rendezVousInfo->setVehicule(null);
}
}
return $this;
}
public function getTypeVehicule(): ?TypeVehicule
{
return $this->type_vehicule;
}
public function setTypeVehicule(?TypeVehicule $type_vehicule): self
{
$this->type_vehicule = $type_vehicule;
return $this;
}
public function getClientCompte(): ?ClientCompte
{
return $this->client_compte;
}
public function setClientCompte(?ClientCompte $client_compte): self
{
$this->client_compte = $client_compte;
return $this;
}
public function getEnergie(): ?Energie
{
return $this->energie;
}
public function setEnergie(?Energie $energie): self
{
$this->energie = $energie;
return $this;
}
public function getMarquePl(): ?MarquePl
{
return $this->marquePl;
}
public function setMarquePl(?MarquePl $marquePl): self
{
$this->marquePl = $marquePl;
return $this;
}
public function getModelePl(): ?ModelePl
{
return $this->modelePl;
}
public function setModelePl(?ModelePl $modelePl): self
{
$this->modelePl = $modelePl;
return $this;
}
public function getIdOld(): ?int
{
return $this->id_old;
}
public function setIdOld(?int $id_old): self
{
$this->id_old = $id_old;
return $this;
}
public function getMarqueCl(): ?MarqueCl
{
return $this->marque_cl;
}
public function setMarqueCl(?MarqueCl $marque_cl): self
{
$this->marque_cl = $marque_cl;
return $this;
}
public function getModeleCl(): ?ModeleCl
{
return $this->modele_cl;
}
public function setModeleCl(?ModeleCl $modele_cl): self
{
$this->modele_cl = $modele_cl;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(?bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
}