<?php
namespace App\Entity;
use App\Repository\RendezVousFacturationRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=RendezVousFacturationRepository::class)
*/
class RendezVousFacturation
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_montant_prestation;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_montant_frais_service;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $fp_option_cv;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_option_cv_montant;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $fp_option_modifiable;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_option_modifiable_montant;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $fp_option_paiement_multiple;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_option_paiement_multiple_montant;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $fp_option_coupon_reduction;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_option_coupon_reduction_montant;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $fp_mode_reglement;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fp_date_second_versement;
/**
* @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
*/
private $fp_montant_second_versement;
/**
* @ORM\OneToOne(targetEntity=Rendezvous::class, cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $rendezvous;
/**
* @ORM\OneToMany(targetEntity=RendezVousPaiementMultiple::class, mappedBy="rendezvous_facturation", orphanRemoval=true)
*/
private $rendezVousPaiementMultiples;
public function __construct()
{
$this->rendezVousPaiementMultiples = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getFpMontantPrestation(): ?string
{
return $this->fp_montant_prestation;
}
public function setFpMontantPrestation(string $fp_montant_prestation): self
{
$this->fp_montant_prestation = $fp_montant_prestation;
return $this;
}
public function getFpMontantFraisService(): ?string
{
return $this->fp_montant_frais_service;
}
public function setFpMontantFraisService(?string $fp_montant_frais_service): self
{
$this->fp_montant_frais_service = $fp_montant_frais_service;
return $this;
}
public function isFpOptionCv(): ?bool
{
return $this->fp_option_cv;
}
public function setFpOptionCv(bool $fp_option_cv): self
{
$this->fp_option_cv = $fp_option_cv;
return $this;
}
public function getFpOptionCvMontant(): ?string
{
return $this->fp_option_cv_montant;
}
public function setFpOptionCvMontant(?string $fp_option_cv_montant): self
{
$this->fp_option_cv_montant = $fp_option_cv_montant;
return $this;
}
public function isFpOptionModifiable(): ?bool
{
return $this->fp_option_modifiable;
}
public function setFpOptionModifiable(bool $fp_option_modifiable): self
{
$this->fp_option_modifiable = $fp_option_modifiable;
return $this;
}
public function getFpOptionModifiableMontant(): ?string
{
return $this->fp_option_modifiable_montant;
}
public function setFpOptionModifiableMontant(?string $fp_option_modifiable_montant): self
{
$this->fp_option_modifiable_montant = $fp_option_modifiable_montant;
return $this;
}
public function isFpOptionPaiementMultiple(): ?bool
{
return $this->fp_option_paiement_multiple;
}
public function setFpOptionPaiementMultiple(bool $fp_option_paiement_multiple): self
{
$this->fp_option_paiement_multiple = $fp_option_paiement_multiple;
return $this;
}
public function getFpOptionPaiementMultipleMontant(): ?string
{
return $this->fp_option_paiement_multiple_montant;
}
public function setFpOptionPaiementMultipleMontant(?string $fp_option_paiement_multiple_montant): self
{
$this->fp_option_paiement_multiple_montant = $fp_option_paiement_multiple_montant;
return $this;
}
public function isFpOptionCouponReduction(): ?bool
{
return $this->fp_option_coupon_reduction;
}
public function setFpOptionCouponReduction(bool $fp_option_coupon_reduction): self
{
$this->fp_option_coupon_reduction = $fp_option_coupon_reduction;
return $this;
}
public function getFpOptionCouponReductionMontant(): ?string
{
return $this->fp_option_coupon_reduction_montant;
}
public function setFpOptionCouponReductionMontant(?string $fp_option_coupon_reduction_montant): self
{
$this->fp_option_coupon_reduction_montant = $fp_option_coupon_reduction_montant;
return $this;
}
public function getFpModeReglement(): ?string
{
return $this->fp_mode_reglement;
}
public function setFpModeReglement(string $fp_mode_reglement): self
{
$this->fp_mode_reglement = $fp_mode_reglement;
return $this;
}
public function getFpDateSecondVersement(): ?\DateTimeInterface
{
return $this->fp_date_second_versement;
}
public function setFpDateSecondVersement(?\DateTimeInterface $fp_date_second_versement): self
{
$this->fp_date_second_versement = $fp_date_second_versement;
return $this;
}
public function getFpMontantSecondVersement(): ?string
{
return $this->fp_montant_second_versement;
}
public function setFpMontantSecondVersement(?string $fp_montant_second_versement): self
{
$this->fp_montant_second_versement = $fp_montant_second_versement;
return $this;
}
public function getRendezvous(): ?Rendezvous
{
return $this->rendezvous;
}
public function setRendezvous(Rendezvous $rendezvous): self
{
$this->rendezvous = $rendezvous;
return $this;
}
/**
* @return Collection<int, RendezVousPaiementMultiple>
*/
public function getRendezVousPaiementMultiples(): Collection
{
return $this->rendezVousPaiementMultiples;
}
public function addRendezVousPaiementMultiple(RendezVousPaiementMultiple $rendezVousPaiementMultiple): self
{
if (!$this->rendezVousPaiementMultiples->contains($rendezVousPaiementMultiple)) {
$this->rendezVousPaiementMultiples[] = $rendezVousPaiementMultiple;
$rendezVousPaiementMultiple->setRendezvousFacturation($this);
}
return $this;
}
public function removeRendezVousPaiementMultiple(RendezVousPaiementMultiple $rendezVousPaiementMultiple): self
{
if ($this->rendezVousPaiementMultiples->removeElement($rendezVousPaiementMultiple)) {
// set the owning side to null (unless already changed)
if ($rendezVousPaiementMultiple->getRendezvousFacturation() === $this) {
$rendezVousPaiementMultiple->setRendezvousFacturation(null);
}
}
return $this;
}
}