<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use App\Controller\ApiController;
use App\Repository\RendezvousRepository;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass=RendezvousRepository::class)
*/
class Rendezvous
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="decimal", precision=7, scale=2)
*/
private $rdv_tarif;
/**
* @ORM\Column(type="datetime")
*/
private $rdv_date_heure;
/**
* @ORM\Column(type="integer")
*/
private $rdv_duree;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_date_rappel_sms;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_datetime_timeout;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $rdv_timeout;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $rdv_commentaire;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $rdv_demande_rappel_sms;
/**
* @ORM\Column(type="string", length=10, nullable=true)
*/
private $rdv_coupon_cteasy;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_bon_commande;
/**
* @ORM\ManyToOne(targetEntity=Centre::class, fetch="EAGER")
* @ORM\JoinColumn(nullable=false)
*/
private $centre;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $rdv_vehicule_present;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $rdv_termine;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $rdv_notif_payline;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rdv_id_auto_planning;
/**
* @ORM\Column(type="datetime")
*/
private $rdv_date_creation;
/**
* @ORM\ManyToOne(targetEntity=ClientLibre::class, inversedBy="rendezvouses", fetch="EAGER")
* @ORM\JoinColumn(nullable=true)
*/
private $client_libre;
/**
* @ORM\ManyToOne(targetEntity=ClientCompte::class, inversedBy="rendezvouses", fetch="EAGER")
* @ORM\JoinColumn(nullable=true)
*/
private $client_compte;
/**
* @ORM\ManyToOne(targetEntity=CentreType::class, inversedBy="rendezvouses")
* @ORM\JoinColumn(nullable=false)
*/
private $centre_type;
/**
* @ORM\ManyToOne(targetEntity=Ligne::class, inversedBy="rendezVouses")
* @ORM\JoinColumn(nullable=false)
*/
private $ligne;
/**
* @ORM\ManyToOne(targetEntity=Partenaire::class, inversedBy="rendezVouses", fetch="EAGER")
*/
private $partenaire;
/**
* @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="rendezVouses")
* @ORM\JoinColumn(name="utilisateur_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
*/
private $utilisateur;
/**
* @ORM\ManyToOne(targetEntity=RendezVousRecurrence::class, inversedBy="rendezVouses")
*/
private $recurrence;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $id_old;
/**
* @ORM\OneToMany(targetEntity=RendezVousInfos::class, mappedBy="rendezvous", fetch="EAGER", cascade={"remove"})
*/
private $rendezVousInfos;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TokenPayline;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tokenRendezVous;
/**
* @ORM\ManyToOne(targetEntity=Promotion::class, inversedBy="rendezvouses")
*/
private $promotion;
/**
* @ORM\ManyToOne(targetEntity=CentreCouponPromotion::class, inversedBy="rendezvouses")
*/
private $couponPromotion;
/**
* @ORM\Column(type="integer")
*/
private $nombreModification = 0;
/**
* @ORM\Column(type="string", length=10, nullable=true)
*/
private $rdv_color;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rdv_date_modification;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $rdv_demande_confirmation_sms;
public function __construct()
{
$this->rendezVousInfos = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getRdvTarif(): ?string
{
return $this->rdv_tarif;
}
public function setRdvTarif(string $rdv_tarif): self
{
$this->rdv_tarif = $rdv_tarif;
return $this;
}
public function getRdvDateHeure(): ?\DateTimeInterface
{
return $this->rdv_date_heure;
}
public function setRdvDateHeure(\DateTimeInterface $rdv_date_heure): self
{
$this->rdv_date_heure = $rdv_date_heure;
return $this;
}
public function getRdvDuree(): ?int
{
return $this->rdv_duree;
}
public function setRdvDuree(int $rdv_duree): self
{
$this->rdv_duree = $rdv_duree;
return $this;
}
public function getRdvDateRappelSms(): ?\DateTimeInterface
{
return $this->rdv_date_rappel_sms;
}
public function setRdvDateRappelSms(?\DateTimeInterface $rdv_date_rappel_sms): self
{
$this->rdv_date_rappel_sms = $rdv_date_rappel_sms;
return $this;
}
public function getRdvDatetimeTimeout(): ?\DateTimeInterface
{
return $this->rdv_datetime_timeout;
}
public function setRdvDatetimeTimeout(?\DateTimeInterface $rdv_datetime_timeout): self
{
$this->rdv_datetime_timeout = $rdv_datetime_timeout;
return $this;
}
public function getRdvTimeout(): ?int
{
return $this->rdv_timeout;
}
public function setRdvTimeout(?int $rdv_timeout): self
{
$this->rdv_timeout = $rdv_timeout;
return $this;
}
public function getRdvCommentaire(): ?string
{
return $this->rdv_commentaire;
}
public function setRdvCommentaire(?string $rdv_commentaire): self
{
$this->rdv_commentaire = $rdv_commentaire;
return $this;
}
public function isRdvDemandeRappelSms(): ?bool
{
return $this->rdv_demande_rappel_sms;
}
public function setRdvDemandeRappelSms(bool $rdv_demande_rappel_sms): self
{
$this->rdv_demande_rappel_sms = $rdv_demande_rappel_sms;
return $this;
}
public function getRdvCouponCteasy(): ?string
{
return $this->rdv_coupon_cteasy;
}
public function setRdvCouponCteasy(?string $rdv_coupon_cteasy): self
{
$this->rdv_coupon_cteasy = $rdv_coupon_cteasy;
return $this;
}
public function getRdvBonCommande(): ?string
{
return $this->rdv_bon_commande;
}
public function setRdvBonCommande(?string $rdv_bon_commande): self
{
$this->rdv_bon_commande = $rdv_bon_commande;
return $this;
}
public function getCentre(): ?Centre
{
return $this->centre;
}
public function setCentre(?Centre $centre): self
{
$this->centre = $centre;
return $this;
}
public function isRdvVehiculePresent(): ?bool
{
return $this->rdv_vehicule_present;
}
public function setRdvVehiculePresent(?bool $rdv_vehicule_present): self
{
$this->rdv_vehicule_present = $rdv_vehicule_present;
return $this;
}
public function isRdvTermine(): ?bool
{
return $this->rdv_termine;
}
public function setRdvTermine(?bool $rdv_termine): self
{
$this->rdv_termine = $rdv_termine;
return $this;
}
public function isRdvNotifPayline(): ?bool
{
return $this->rdv_notif_payline;
}
public function setRdvNotifPayline(bool $rdv_notif_payline): self
{
$this->rdv_notif_payline = $rdv_notif_payline;
return $this;
}
public function getRdvIdAutoPlanning(): ?string
{
return $this->rdv_id_auto_planning;
}
public function setRdvIdAutoPlanning(?string $rdv_id_auto_planning): self
{
$this->rdv_id_auto_planning = $rdv_id_auto_planning;
return $this;
}
public function getRdvDateCreation(): ?\DateTimeInterface
{
return $this->rdv_date_creation;
}
public function setRdvDateCreation(\DateTimeInterface $rdv_date_creation): self
{
$this->rdv_date_creation = $rdv_date_creation;
return $this;
}
public function getClientLibre(): ?ClientLibre
{
return $this->client_libre;
}
public function setClientLibre(?ClientLibre $client_libre): self
{
$this->client_libre = $client_libre;
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 getCentreType(): ?CentreType
{
return $this->centre_type;
}
public function setCentreType(?CentreType $centre_type): self
{
$this->centre_type = $centre_type;
return $this;
}
public function getLigne(): ?Ligne
{
return $this->ligne;
}
public function setLigne(?Ligne $ligne): self
{
$this->ligne = $ligne;
return $this;
}
public function getPartenaire(): ?Partenaire
{
return $this->partenaire;
}
public function setPartenaire(?Partenaire $partenaire): self
{
$this->partenaire = $partenaire;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
public function setUtilisateur(?Utilisateur $utilisateur): self
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getRecurrence(): ?RendezVousRecurrence
{
return $this->recurrence;
}
public function setRecurrence(?RendezVousRecurrence $recurrence): self
{
$this->recurrence = $recurrence;
return $this;
}
public function getIdOld(): ?string
{
return $this->id_old;
}
public function setIdOld(string $id_old): self
{
$this->id_old = $id_old;
return $this;
}
// public function getRendezVousInfos(): ?RendezVousInfos
// {
// return $this->rendezVousInfos;
// }
// public function setRendezVousInfos(RendezVousInfos $rendezVousInfos): self
// {
// // set the owning side of the relation if necessary
// if ($rendezVousInfos->getRendezvous() !== $this) {
// $rendezVousInfos->setRendezvous($this);
// }
// $this->rendezVousInfos = $rendezVousInfos;
// 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->setRendezvous($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->getRendezvous() === $this) {
$rendezVousInfo->setRendezvous($this);
}
}
return $this;
}
public function getTokenPayline(): ?string
{
return $this->TokenPayline;
}
public function setTokenPayline(?string $TokenPayline): self
{
$this->TokenPayline = $TokenPayline;
return $this;
}
public function getTokenRendezVous(): ?string
{
return $this->tokenRendezVous;
}
public function setTokenRendezVous(?string $tokenRendezVous): self
{
$this->tokenRendezVous = $tokenRendezVous;
return $this;
}
public function getPromotion(): ?Promotion
{
return $this->promotion;
}
public function setPromotion(?Promotion $promotion): self
{
$this->promotion = $promotion;
return $this;
}
public function getCouponPromotion(): ?CentreCouponPromotion
{
return $this->couponPromotion;
}
public function setCouponPromotion(?CentreCouponPromotion $couponPromotion): self
{
$this->couponPromotion = $couponPromotion;
return $this;
}
public function getNombreModification(): ?int
{
return $this->nombreModification;
}
public function setNombreModification(int $nombreModification): self
{
$this->nombreModification = $nombreModification;
return $this;
}
public function getRdvColor(): ?string
{
return $this->rdv_color;
}
public function setRdvColor(?string $rdv_color): self
{
$this->rdv_color = $rdv_color;
return $this;
}
public function getRdvDateModification(): ?\DateTimeInterface
{
return $this->rdv_date_modification;
}
public function setRdvDateModification(?\DateTimeInterface $rdv_date_modification): self
{
$this->rdv_date_modification = $rdv_date_modification;
return $this;
}
/**
* @return mixed
*/
public function getRdvDemandeConfirmationSms()
{
return $this->rdv_demande_confirmation_sms;
}
public function setRdvDemandeConfirmationSms(bool $rdv_demande_confirmation_sms): self
{
$this->rdv_demande_confirmation_sms = $rdv_demande_confirmation_sms;
return $this;
}
}