src/Entity/RendezVousVehicule.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RendezVousVehiculeRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=RendezVousVehiculeRepository::class)
  10.  */
  11. class RendezVousVehicule
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $rdv_vhc_immatriculation;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $rdv_vhc_ref_parc;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $rdv_vhc_num_serie;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $rdv_vhc_description;
  35.     /**
  36.      * @ORM\Column(type="datetime", nullable=true)
  37.      */
  38.     private $rdv_vhc_date_echeance;
  39.     /**
  40.      * @ORM\Column(type="datetime", nullable=true)
  41.      */
  42.     private $rdv_vhc_date_alert_echeance;
  43.     /**
  44.      * @ORM\Column(type="datetime", nullable=true)
  45.      */
  46.     private $rdv_vhc_date_chronotachygraphe;
  47.     /**
  48.      * @ORM\Column(type="datetime", nullable=true)
  49.      */
  50.     private $rdv_vhc_date_limiteur_vitesse;
  51.     /**
  52.      * @ORM\Column(type="string", length=255)
  53.      */
  54.     private $rdv_vhc_type_proprietaire;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private $rdv_vhc_nom_client_proprietaire;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $rdv_vhc_prenom_client_proprietaire;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     private $rdv_vhc_zone_saisie_1;
  67.     /**
  68.      * @ORM\Column(type="datetime", nullable=true)
  69.      */
  70.     private $rdv_vhc_date_saisie_1;
  71.     /**
  72.      * @ORM\Column(type="string", length=255, nullable=true)
  73.      */
  74.     private $rdv_vhc_zone_saisie_2;
  75.     /**
  76.      * @ORM\Column(type="datetime", nullable=true)
  77.      */
  78.     private $rdv_vhc_date_saisie_2;
  79.     /**
  80.      * @ORM\Column(type="string", length=255, nullable=true)
  81.      */
  82.     private $rdv_vhc_zone_saisie_3;
  83.     /**
  84.      * @ORM\Column(type="datetime", nullable=true)
  85.      */
  86.     private $rdv_vhc_date_saisie_3;
  87.     /**
  88.      * @ORM\Column(type="date", nullable=true)
  89.      */
  90.     private $rdv_vhc_date_rdv_prevu;
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity=Marque::class, inversedBy="rendezVousVehicules", fetch="EAGER")
  93.      * @ORM\JoinColumn(nullable=true)
  94.      */
  95.     private $marque;
  96.     /**
  97.      * @ORM\ManyToOne(targetEntity=Modele::class, inversedBy="rendezVousVehicules", fetch="EAGER")
  98.      * @ORM\JoinColumn(nullable=true)
  99.      */
  100.     private $modele;
  101.     /**
  102.      * @ORM\OneToMany(targetEntity=RendezVousInfos::class, mappedBy="vehicule")
  103.      */
  104.     private $rendezVousInfos;
  105.     /**
  106.      * @ORM\ManyToOne(targetEntity=TypeVehicule::class, inversedBy="rendezVousVehicules")
  107.      */
  108.     private $type_vehicule;
  109.     /**
  110.      * @ORM\ManyToOne(targetEntity=ClientCompte::class, inversedBy="rendezVousVehicules")
  111.      * @ORM\JoinColumn(nullable=true)
  112.      */
  113.     private $client_compte;
  114.     /**
  115.      * @ORM\ManyToOne(targetEntity=Energie::class)
  116.      */
  117.     private $energie;
  118.     /**
  119.      * @ORM\ManyToOne(targetEntity=MarquePl::class)
  120.      */
  121.     private $marquePl;
  122.     /**
  123.      * @ORM\ManyToOne(targetEntity=ModelePl::class)
  124.      */
  125.     private $modelePl;
  126.     /**
  127.      * @ORM\Column(type="integer", nullable=true)
  128.      */
  129.     private $id_old;
  130.     /**
  131.      * @ORM\ManyToOne(targetEntity=MarqueCl::class)
  132.      */
  133.     private $marque_cl;
  134.     /**
  135.      * @ORM\ManyToOne(targetEntity=ModeleCl::class)
  136.      */
  137.     private $modele_cl;
  138.     /**
  139.      * @ORM\Column(type="boolean", nullable=true)
  140.      */
  141.     private $isActive;
  142.     public function __construct()
  143.     {
  144.         $this->rendezVousInfos = new ArrayCollection();
  145.     }
  146.     public function getId(): ?int
  147.     {
  148.         return $this->id;
  149.     }
  150.     public function getRdvVhcImmatriculation(): ?string
  151.     {
  152.         return $this->rdv_vhc_immatriculation;
  153.     }
  154.     public function setRdvVhcImmatriculation(?string $rdv_vhc_immatriculation): self
  155.     {
  156.         $this->rdv_vhc_immatriculation $rdv_vhc_immatriculation?strtoupper($rdv_vhc_immatriculation):$rdv_vhc_immatriculation;
  157.         return $this;
  158.     }
  159.     public function getRdvVhcRefParc(): ?string
  160.     {
  161.         return $this->rdv_vhc_ref_parc;
  162.     }
  163.     public function setRdvVhcRefParc(?string $rdv_vhc_ref_parc): self
  164.     {
  165.         $this->rdv_vhc_ref_parc $rdv_vhc_ref_parc;
  166.         return $this;
  167.     }
  168.     public function getRdvVhcNumSerie(): ?string
  169.     {
  170.         return $this->rdv_vhc_num_serie;
  171.     }
  172.     public function setRdvVhcNumSerie(?string $rdv_vhc_num_serie): self
  173.     {
  174.         $this->rdv_vhc_num_serie $rdv_vhc_num_serie;
  175.         return $this;
  176.     }
  177.     public function getRdvVhcDescription(): ?string
  178.     {
  179.         return $this->rdv_vhc_description;
  180.     }
  181.     public function setRdvVhcDescription(?string $rdv_vhc_description): self
  182.     {
  183.         $this->rdv_vhc_description $rdv_vhc_description;
  184.         return $this;
  185.     }
  186.     public function getRdvVhcDateEcheance(): ?\DateTimeInterface
  187.     {
  188.         return $this->rdv_vhc_date_echeance;
  189.     }
  190.     public function setRdvVhcDateEcheance(?\DateTimeInterface $rdv_vhc_date_echeance): self
  191.     {
  192.         $this->rdv_vhc_date_echeance $rdv_vhc_date_echeance;
  193.         return $this;
  194.     }
  195.     public function getRdvVhcDateAlertEcheance(): ?\DateTimeInterface
  196.     {
  197.         return $this->rdv_vhc_date_alert_echeance;
  198.     }
  199.     public function setRdvVhcDateAlertEcheance(?\DateTimeInterface $rdv_vhc_date_alert_echeance): self
  200.     {
  201.         $this->rdv_vhc_date_alert_echeance $rdv_vhc_date_alert_echeance;
  202.         return $this;
  203.     }
  204.     public function getRdvVhcDateChronotachygraphe(): ?\DateTimeInterface
  205.     {
  206.         return $this->rdv_vhc_date_chronotachygraphe;
  207.     }
  208.     public function setRdvVhcDateChronotachygraphe(?\DateTimeInterface $rdv_vhc_date_chronotachygraphe): self
  209.     {
  210.         $this->rdv_vhc_date_chronotachygraphe $rdv_vhc_date_chronotachygraphe;
  211.         return $this;
  212.     }
  213.     public function getRdvVhcDateLimiteurVitesse(): ?\DateTimeInterface
  214.     {
  215.         return $this->rdv_vhc_date_limiteur_vitesse;
  216.     }
  217.     public function setRdvVhcDateLimiteurVitesse(?\DateTimeInterface $rdv_vhc_date_limiteur_vitesse): self
  218.     {
  219.         $this->rdv_vhc_date_limiteur_vitesse $rdv_vhc_date_limiteur_vitesse;
  220.         return $this;
  221.     }
  222.     public function getRdvVhcTypeProprietaire(): ?string
  223.     {
  224.         return $this->rdv_vhc_type_proprietaire;
  225.     }
  226.     public function setRdvVhcTypeProprietaire(string $rdv_vhc_type_proprietaire): self
  227.     {
  228.         $this->rdv_vhc_type_proprietaire $rdv_vhc_type_proprietaire;
  229.         return $this;
  230.     }
  231.     public function getRdvVhcNomClientProprietaire(): ?string
  232.     {
  233.         return $this->rdv_vhc_nom_client_proprietaire;
  234.     }
  235.     public function setRdvVhcNomClientProprietaire(string $rdv_vhc_nom_client_proprietaire): self
  236.     {
  237.         $this->rdv_vhc_nom_client_proprietaire $rdv_vhc_nom_client_proprietaire;
  238.         return $this;
  239.     }
  240.     public function getRdvVhcPrenomClientProprietaire(): ?string
  241.     {
  242.         return $this->rdv_vhc_prenom_client_proprietaire;
  243.     }
  244.     public function setRdvVhcPrenomClientProprietaire(?string $rdv_vhc_prenom_client_proprietaire): self
  245.     {
  246.         $this->rdv_vhc_prenom_client_proprietaire $rdv_vhc_prenom_client_proprietaire;
  247.         return $this;
  248.     }
  249.     public function getRdvVhcZoneSaisie1(): ?string
  250.     {
  251.         return $this->rdv_vhc_zone_saisie_1;
  252.     }
  253.     public function setRdvVhcZoneSaisie1(?string $rdv_vhc_zone_saisie_1): self
  254.     {
  255.         $this->rdv_vhc_zone_saisie_1 $rdv_vhc_zone_saisie_1;
  256.         return $this;
  257.     }
  258.     public function getRdvVhcDateSaisie1(): ?\DateTimeInterface
  259.     {
  260.         return $this->rdv_vhc_date_saisie_1;
  261.     }
  262.     public function setRdvVhcDateSaisie1(?\DateTimeInterface $rdv_vhc_date_saisie_1): self
  263.     {
  264.         $this->rdv_vhc_date_saisie_1 $rdv_vhc_date_saisie_1;
  265.         return $this;
  266.     }
  267.     public function getRdvVhcZoneSaisie2(): ?string
  268.     {
  269.         return $this->rdv_vhc_zone_saisie_2;
  270.     }
  271.     public function setRdvVhcZoneSaisie2(?string $rdv_vhc_zone_saisie_2): self
  272.     {
  273.         $this->rdv_vhc_zone_saisie_2 $rdv_vhc_zone_saisie_2;
  274.         return $this;
  275.     }
  276.     public function getRdvVhcDateSaisie2(): ?\DateTimeInterface
  277.     {
  278.         return $this->rdv_vhc_date_saisie_2;
  279.     }
  280.     public function setRdvVhcDateSaisie2(?\DateTimeInterface $rdv_vhc_date_saisie_2): self
  281.     {
  282.         $this->rdv_vhc_date_saisie_2 $rdv_vhc_date_saisie_2;
  283.         return $this;
  284.     }
  285.     public function getRdvVhcZoneSaisie3(): ?string
  286.     {
  287.         return $this->rdv_vhc_zone_saisie_3;
  288.     }
  289.     public function setRdvVhcZoneSaisie3(?string $rdv_vhc_zone_saisie_3): self
  290.     {
  291.         $this->rdv_vhc_zone_saisie_3 $rdv_vhc_zone_saisie_3;
  292.         return $this;
  293.     }
  294.     public function getRdvVhcDateSaisie3(): ?\DateTimeInterface
  295.     {
  296.         return $this->rdv_vhc_date_saisie_3;
  297.     }
  298.     public function setRdvVhcDateSaisie3(?\DateTimeInterface $rdv_vhc_date_saisie_3): self
  299.     {
  300.         $this->rdv_vhc_date_saisie_3 $rdv_vhc_date_saisie_3;
  301.         return $this;
  302.     }
  303.     public function getRdvVhcDateRdvPrevu(): ?\DateTimeInterface
  304.     {
  305.         return $this->rdv_vhc_date_rdv_prevu;
  306.     }
  307.     public function setRdvVhcDateRdvPrevu(?\DateTimeInterface $rdv_vhc_date_rdv_prevu): self
  308.     {
  309.         $this->rdv_vhc_date_rdv_prevu $rdv_vhc_date_rdv_prevu;
  310.         return $this;
  311.     }
  312.     public function getMarque(): ?Marque
  313.     {
  314.         return $this->marque;
  315.     }
  316.     public function setMarque(?Marque $marque): self
  317.     {
  318.         $this->marque $marque;
  319.         return $this;
  320.     }
  321.     public function getModele(): ?Modele
  322.     {
  323.         return $this->modele;
  324.     }
  325.     public function setModele(?Modele $modele): self
  326.     {
  327.         $this->modele $modele;
  328.         return $this;
  329.     }
  330.     /**
  331.      * @return Collection<int, RendezVousInfos>
  332.      */
  333.     public function getRendezVousInfos(): Collection
  334.     {
  335.         return $this->rendezVousInfos;
  336.     }
  337.     public function addRendezVousInfo(RendezVousInfos $rendezVousInfo): self
  338.     {
  339.         if (!$this->rendezVousInfos->contains($rendezVousInfo)) {
  340.             $this->rendezVousInfos[] = $rendezVousInfo;
  341.             $rendezVousInfo->setVehicule($this);
  342.         }
  343.         return $this;
  344.     }
  345.     public function removeRendezVousInfo(RendezVousInfos $rendezVousInfo): self
  346.     {
  347.         if ($this->rendezVousInfos->removeElement($rendezVousInfo)) {
  348.             // set the owning side to null (unless already changed)
  349.             if ($rendezVousInfo->getVehicule() === $this) {
  350.                 $rendezVousInfo->setVehicule(null);
  351.             }
  352.         }
  353.         return $this;
  354.     }
  355.     public function getTypeVehicule(): ?TypeVehicule
  356.     {
  357.         return $this->type_vehicule;
  358.     }
  359.     public function setTypeVehicule(?TypeVehicule $type_vehicule): self
  360.     {
  361.         $this->type_vehicule $type_vehicule;
  362.         return $this;
  363.     }
  364.     public function getClientCompte(): ?ClientCompte
  365.     {
  366.         return $this->client_compte;
  367.     }
  368.     public function setClientCompte(?ClientCompte $client_compte): self
  369.     {
  370.         $this->client_compte $client_compte;
  371.         return $this;
  372.     }
  373.     public function getEnergie(): ?Energie
  374.     {
  375.         return $this->energie;
  376.     }
  377.     public function setEnergie(?Energie $energie): self
  378.     {
  379.         $this->energie $energie;
  380.         return $this;
  381.     }
  382.     public function getMarquePl(): ?MarquePl
  383.     {
  384.         return $this->marquePl;
  385.     }
  386.     public function setMarquePl(?MarquePl $marquePl): self
  387.     {
  388.         $this->marquePl $marquePl;
  389.         return $this;
  390.     }
  391.     public function getModelePl(): ?ModelePl
  392.     {
  393.         return $this->modelePl;
  394.     }
  395.     public function setModelePl(?ModelePl $modelePl): self
  396.     {
  397.         $this->modelePl $modelePl;
  398.         return $this;
  399.     }
  400.     public function getIdOld(): ?int
  401.     {
  402.         return $this->id_old;
  403.     }
  404.     public function setIdOld(?int $id_old): self
  405.     {
  406.         $this->id_old $id_old;
  407.         return $this;
  408.     }
  409.     public function getMarqueCl(): ?MarqueCl
  410.     {
  411.         return $this->marque_cl;
  412.     }
  413.     public function setMarqueCl(?MarqueCl $marque_cl): self
  414.     {
  415.         $this->marque_cl $marque_cl;
  416.         return $this;
  417.     }
  418.     public function getModeleCl(): ?ModeleCl
  419.     {
  420.         return $this->modele_cl;
  421.     }
  422.     public function setModeleCl(?ModeleCl $modele_cl): self
  423.     {
  424.         $this->modele_cl $modele_cl;
  425.         return $this;
  426.     }
  427.     public function getIsActive(): ?bool
  428.     {
  429.         return $this->isActive;
  430.     }
  431.     public function setIsActive(?bool $isActive): self
  432.     {
  433.         $this->isActive $isActive;
  434.         return $this;
  435.     }
  436. }