src/Entity/Rendezvous.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Controller\ApiController;
  6. use App\Repository\RendezvousRepository;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. /**
  10.  * @ORM\Entity(repositoryClass=RendezvousRepository::class)
  11.  */
  12. class Rendezvous
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="decimal", precision=7, scale=2)
  22.      */
  23.     private $rdv_tarif;
  24.     /**
  25.      * @ORM\Column(type="datetime")
  26.      */
  27.     private $rdv_date_heure;
  28.     /**
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $rdv_duree;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $rdv_date_rappel_sms;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      */
  39.     private $rdv_datetime_timeout;
  40.     /**
  41.      * @ORM\Column(type="integer", nullable=true)
  42.      */
  43.     private $rdv_timeout;
  44.     /**
  45.      * @ORM\Column(type="text", nullable=true)
  46.      */
  47.     private $rdv_commentaire;
  48.     /**
  49.      * @ORM\Column(type="boolean", nullable=true)
  50.      */
  51.     private $rdv_demande_rappel_sms;
  52.     /**
  53.      * @ORM\Column(type="string", length=10, nullable=true)
  54.      */
  55.     private $rdv_coupon_cteasy;
  56.     /**
  57.      * @ORM\Column(type="string", length=255, nullable=true)
  58.      */
  59.     private $rdv_bon_commande;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=Centre::class, fetch="EAGER")
  62.      * @ORM\JoinColumn(nullable=false)
  63.      */
  64.     private $centre;
  65.     /**
  66.      * @ORM\Column(type="boolean", nullable=true)
  67.      */
  68.     private $rdv_vehicule_present;
  69.     /**
  70.      * @ORM\Column(type="boolean", nullable=true)
  71.      */
  72.     private $rdv_termine;
  73.     /**
  74.      * @ORM\Column(type="boolean",  nullable=true)
  75.      */
  76.     private $rdv_notif_payline;
  77.     /**
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      */
  80.     private $rdv_id_auto_planning;
  81.     /**
  82.      * @ORM\Column(type="datetime")
  83.      */
  84.     private $rdv_date_creation;
  85.     /**
  86.      * @ORM\ManyToOne(targetEntity=ClientLibre::class, inversedBy="rendezvouses", fetch="EAGER")
  87.      * @ORM\JoinColumn(nullable=true)
  88.      */
  89.     private $client_libre;
  90.     /**
  91.      * @ORM\ManyToOne(targetEntity=ClientCompte::class, inversedBy="rendezvouses", fetch="EAGER")
  92.      * @ORM\JoinColumn(nullable=true)
  93.      */
  94.     private $client_compte;
  95.     /**
  96.      * @ORM\ManyToOne(targetEntity=CentreType::class, inversedBy="rendezvouses")
  97.      * @ORM\JoinColumn(nullable=false)
  98.      */
  99.     private $centre_type;
  100.     /**
  101.      * @ORM\ManyToOne(targetEntity=Ligne::class, inversedBy="rendezVouses")
  102.      * @ORM\JoinColumn(nullable=false)
  103.      */
  104.     private $ligne;
  105.     /**
  106.      * @ORM\ManyToOne(targetEntity=Partenaire::class, inversedBy="rendezVouses", fetch="EAGER")
  107.      */
  108.     private $partenaire;
  109.     /**
  110.      * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="rendezVouses")
  111.      * @ORM\JoinColumn(name="utilisateur_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  112.      */
  113.     private $utilisateur;
  114.     /**
  115.      * @ORM\ManyToOne(targetEntity=RendezVousRecurrence::class, inversedBy="rendezVouses")
  116.      */
  117.     private $recurrence;
  118.     /**
  119.      * @ORM\Column(type="string", length=255, nullable=true)
  120.      */
  121.     private $id_old;
  122.     /**
  123.      * @ORM\OneToMany(targetEntity=RendezVousInfos::class, mappedBy="rendezvous", fetch="EAGER", cascade={"remove"})
  124.      */
  125.     private $rendezVousInfos;
  126.     /**
  127.      * @ORM\Column(type="string", length=255, nullable=true)
  128.      */
  129.     private $TokenPayline;
  130.     /**
  131.      * @ORM\Column(type="string", length=255, nullable=true)
  132.      */
  133.     private $tokenRendezVous;
  134.     /**
  135.      * @ORM\ManyToOne(targetEntity=Promotion::class, inversedBy="rendezvouses")
  136.      */
  137.     private $promotion;
  138.     /**
  139.      * @ORM\ManyToOne(targetEntity=CentreCouponPromotion::class, inversedBy="rendezvouses")
  140.      */
  141.     private $couponPromotion;
  142.     /**
  143.      * @ORM\Column(type="integer")
  144.      */
  145.     private $nombreModification 0;
  146.     /**
  147.      * @ORM\Column(type="string", length=10, nullable=true)
  148.      */
  149.     private $rdv_color;
  150.     /**
  151.      * @ORM\Column(type="datetime", nullable=true)
  152.      */
  153.     private $rdv_date_modification;
  154.     /**
  155.      * @ORM\Column(type="boolean", nullable=true)
  156.      */
  157.     private $rdv_demande_confirmation_sms;
  158.   
  159.     public function __construct()
  160.     {
  161.         $this->rendezVousInfos = new ArrayCollection();
  162.     }
  163.     public function getId(): ?int
  164.     {
  165.         return $this->id;
  166.     }
  167.     public function getRdvTarif(): ?string
  168.     {
  169.         return $this->rdv_tarif;
  170.     }
  171.     public function setRdvTarif(string $rdv_tarif): self
  172.     {
  173.         $this->rdv_tarif $rdv_tarif;
  174.         return $this;
  175.     }
  176.     public function getRdvDateHeure(): ?\DateTimeInterface
  177.     {
  178.         return $this->rdv_date_heure;
  179.     }
  180.     public function setRdvDateHeure(\DateTimeInterface $rdv_date_heure): self
  181.     {
  182.         $this->rdv_date_heure $rdv_date_heure;
  183.         return $this;
  184.     }
  185.     public function getRdvDuree(): ?int
  186.     {
  187.         return $this->rdv_duree;
  188.     }
  189.     public function setRdvDuree(int $rdv_duree): self
  190.     {
  191.         $this->rdv_duree $rdv_duree;
  192.         return $this;
  193.     }
  194.     public function getRdvDateRappelSms(): ?\DateTimeInterface
  195.     {
  196.         return $this->rdv_date_rappel_sms;
  197.     }
  198.     public function setRdvDateRappelSms(?\DateTimeInterface $rdv_date_rappel_sms): self
  199.     {
  200.         $this->rdv_date_rappel_sms $rdv_date_rappel_sms;
  201.         return $this;
  202.     }
  203.     public function getRdvDatetimeTimeout(): ?\DateTimeInterface
  204.     {
  205.         return $this->rdv_datetime_timeout;
  206.     }
  207.     public function setRdvDatetimeTimeout(?\DateTimeInterface $rdv_datetime_timeout): self
  208.     {
  209.         $this->rdv_datetime_timeout $rdv_datetime_timeout;
  210.         return $this;
  211.     }
  212.     public function getRdvTimeout(): ?int
  213.     {
  214.         return $this->rdv_timeout;
  215.     }
  216.     public function setRdvTimeout(?int $rdv_timeout): self
  217.     {
  218.         $this->rdv_timeout $rdv_timeout;
  219.         return $this;
  220.     }
  221.     public function getRdvCommentaire(): ?string
  222.     {
  223.         return $this->rdv_commentaire;
  224.     }
  225.     public function setRdvCommentaire(?string $rdv_commentaire): self
  226.     {
  227.         $this->rdv_commentaire $rdv_commentaire;
  228.         return $this;
  229.     }
  230.     public function isRdvDemandeRappelSms(): ?bool
  231.     {
  232.         return $this->rdv_demande_rappel_sms;
  233.     }
  234.     public function setRdvDemandeRappelSms(bool $rdv_demande_rappel_sms): self
  235.     {
  236.         $this->rdv_demande_rappel_sms $rdv_demande_rappel_sms;
  237.         return $this;
  238.     }
  239.     public function getRdvCouponCteasy(): ?string
  240.     {
  241.         return $this->rdv_coupon_cteasy;
  242.     }
  243.     public function setRdvCouponCteasy(?string $rdv_coupon_cteasy): self
  244.     {
  245.         $this->rdv_coupon_cteasy $rdv_coupon_cteasy;
  246.         return $this;
  247.     }
  248.     public function getRdvBonCommande(): ?string
  249.     {
  250.         return $this->rdv_bon_commande;
  251.     }
  252.     public function setRdvBonCommande(?string $rdv_bon_commande): self
  253.     {
  254.         $this->rdv_bon_commande $rdv_bon_commande;
  255.         return $this;
  256.     }
  257.     public function getCentre(): ?Centre
  258.     {
  259.         return $this->centre;
  260.     }
  261.     public function setCentre(?Centre $centre): self
  262.     {
  263.         $this->centre $centre;
  264.         return $this;
  265.     }
  266.     public function isRdvVehiculePresent(): ?bool
  267.     {
  268.         return $this->rdv_vehicule_present;
  269.     }
  270.     public function setRdvVehiculePresent(?bool $rdv_vehicule_present): self
  271.     {
  272.         $this->rdv_vehicule_present $rdv_vehicule_present;
  273.         return $this;
  274.     }
  275.     public function isRdvTermine(): ?bool
  276.     {
  277.         return $this->rdv_termine;
  278.     }
  279.     public function setRdvTermine(?bool $rdv_termine): self
  280.     {
  281.         $this->rdv_termine $rdv_termine;
  282.         return $this;
  283.     }
  284.     public function isRdvNotifPayline(): ?bool
  285.     {
  286.         return $this->rdv_notif_payline;
  287.     }
  288.     public function setRdvNotifPayline(bool $rdv_notif_payline): self
  289.     {
  290.         $this->rdv_notif_payline $rdv_notif_payline;
  291.         return $this;
  292.     }
  293.     public function getRdvIdAutoPlanning(): ?string
  294.     {
  295.         return $this->rdv_id_auto_planning;
  296.     }
  297.     public function setRdvIdAutoPlanning(?string $rdv_id_auto_planning): self
  298.     {
  299.         $this->rdv_id_auto_planning $rdv_id_auto_planning;
  300.         return $this;
  301.     }
  302.     public function getRdvDateCreation(): ?\DateTimeInterface
  303.     {
  304.         return $this->rdv_date_creation;
  305.     }
  306.     public function setRdvDateCreation(\DateTimeInterface $rdv_date_creation): self
  307.     {
  308.         $this->rdv_date_creation $rdv_date_creation;
  309.         return $this;
  310.     }
  311.     public function getClientLibre(): ?ClientLibre
  312.     {
  313.         return $this->client_libre;
  314.     }
  315.     public function setClientLibre(?ClientLibre $client_libre): self
  316.     {
  317.         $this->client_libre $client_libre;
  318.         return $this;
  319.     }
  320.     public function getClientCompte(): ?ClientCompte
  321.     {
  322.         return $this->client_compte;
  323.     }
  324.     public function setClientCompte(?ClientCompte $client_compte): self
  325.     {
  326.         $this->client_compte $client_compte;
  327.         return $this;
  328.     }
  329.     public function getCentreType(): ?CentreType
  330.     {
  331.         return $this->centre_type;
  332.     }
  333.     public function setCentreType(?CentreType $centre_type): self
  334.     {
  335.         $this->centre_type $centre_type;
  336.         return $this;
  337.     }
  338.     public function getLigne(): ?Ligne
  339.     {
  340.         return $this->ligne;
  341.     }
  342.     public function setLigne(?Ligne $ligne): self
  343.     {
  344.         $this->ligne $ligne;
  345.         return $this;
  346.     }
  347.     public function getPartenaire(): ?Partenaire
  348.     {
  349.         return $this->partenaire;
  350.     }
  351.     public function setPartenaire(?Partenaire $partenaire): self
  352.     {
  353.         $this->partenaire $partenaire;
  354.         return $this;
  355.     }
  356.     public function getUtilisateur(): ?Utilisateur
  357.     {
  358.         return $this->utilisateur;
  359.     }
  360.     public function setUtilisateur(?Utilisateur $utilisateur): self
  361.     {
  362.         $this->utilisateur $utilisateur;
  363.         return $this;
  364.     }
  365.     public function getRecurrence(): ?RendezVousRecurrence
  366.     {
  367.         return $this->recurrence;
  368.     }
  369.     public function setRecurrence(?RendezVousRecurrence $recurrence): self
  370.     {
  371.         $this->recurrence $recurrence;
  372.         return $this;
  373.     }
  374.     public function getIdOld(): ?string
  375.     {
  376.         return $this->id_old;
  377.     }
  378.     public function setIdOld(string $id_old): self
  379.     {
  380.         $this->id_old $id_old;
  381.         return $this;
  382.     }
  383.     // public function getRendezVousInfos(): ?RendezVousInfos
  384.     // {
  385.     //     return $this->rendezVousInfos;
  386.     // }
  387.     // public function setRendezVousInfos(RendezVousInfos $rendezVousInfos): self
  388.     // {
  389.     //     // set the owning side of the relation if necessary
  390.     //     if ($rendezVousInfos->getRendezvous() !== $this) {
  391.     //         $rendezVousInfos->setRendezvous($this);
  392.     //     }
  393.     //     $this->rendezVousInfos = $rendezVousInfos;
  394.     //     return $this;
  395.     // }
  396.         /**
  397.      * @return Collection<int, RendezVousInfos>
  398.      */
  399.     public function getRendezVousInfos(): Collection
  400.     {
  401.         return $this->rendezVousInfos;
  402.     }
  403.     public function addRendezVousInfo(RendezVousInfos $rendezVousInfo): self
  404.     {
  405.         if (!$this->rendezVousInfos->contains($rendezVousInfo)) {
  406.             $this->rendezVousInfos[] = $rendezVousInfo;
  407.             $rendezVousInfo->setRendezvous($this);
  408.         }
  409.         return $this;
  410.     }
  411.     public function removeRendezVousInfo(RendezVousInfos $rendezVousInfo): self
  412.     {
  413.         if ($this->rendezVousInfos->removeElement($rendezVousInfo)) {
  414.             // set the owning side to null (unless already changed)
  415.             if ($rendezVousInfo->getRendezvous() === $this) {
  416.                 $rendezVousInfo->setRendezvous($this);
  417.             }
  418.         }
  419.         return $this;
  420.     }
  421.     public function getTokenPayline(): ?string
  422.     {
  423.         return $this->TokenPayline;
  424.     }
  425.     public function setTokenPayline(?string $TokenPayline): self
  426.     {
  427.         $this->TokenPayline $TokenPayline;
  428.         return $this;
  429.     }
  430.     public function getTokenRendezVous(): ?string
  431.     {
  432.         return $this->tokenRendezVous;
  433.     }
  434.     public function setTokenRendezVous(?string $tokenRendezVous): self
  435.     {
  436.         $this->tokenRendezVous $tokenRendezVous;
  437.         return $this;
  438.     }
  439.     public function getPromotion(): ?Promotion
  440.     {
  441.         return $this->promotion;
  442.     }
  443.     public function setPromotion(?Promotion $promotion): self
  444.     {
  445.         $this->promotion $promotion;
  446.         return $this;
  447.     }
  448.     public function getCouponPromotion(): ?CentreCouponPromotion
  449.     {
  450.         return $this->couponPromotion;
  451.     }
  452.     public function setCouponPromotion(?CentreCouponPromotion $couponPromotion): self
  453.     {
  454.         $this->couponPromotion $couponPromotion;
  455.         return $this;
  456.     }
  457.     public function getNombreModification(): ?int
  458.     {
  459.         return $this->nombreModification;
  460.     }
  461.     public function setNombreModification(int $nombreModification): self
  462.     {
  463.         $this->nombreModification $nombreModification;
  464.         return $this;
  465.     }
  466.     public function getRdvColor(): ?string
  467.     {
  468.         return $this->rdv_color;
  469.     }
  470.     public function setRdvColor(?string $rdv_color): self
  471.     {
  472.         $this->rdv_color $rdv_color;
  473.         return $this;
  474.     }
  475.     public function getRdvDateModification(): ?\DateTimeInterface
  476.     {
  477.         return $this->rdv_date_modification;
  478.     }
  479.     public function setRdvDateModification(?\DateTimeInterface $rdv_date_modification): self
  480.     {
  481.         $this->rdv_date_modification $rdv_date_modification;
  482.         return $this;
  483.     }
  484.     /**
  485.      * @return mixed
  486.      */
  487.     public function getRdvDemandeConfirmationSms()
  488.     {
  489.         return $this->rdv_demande_confirmation_sms;
  490.     }
  491.     public function setRdvDemandeConfirmationSms(bool $rdv_demande_confirmation_sms): self
  492.     {
  493.         $this->rdv_demande_confirmation_sms $rdv_demande_confirmation_sms;
  494.         return $this;
  495.     }
  496. }