src/Entity/RendezVousFacturation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RendezVousFacturationRepository;
  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=RendezVousFacturationRepository::class)
  10.  */
  11. class RendezVousFacturation
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  21.      */
  22.     private $fp_montant_prestation;
  23.     /**
  24.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  25.      */
  26.     private $fp_montant_frais_service;
  27.     /**
  28.      * @ORM\Column(type="boolean", nullable=true)
  29.      */
  30.     private $fp_option_cv;
  31.     /**
  32.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  33.      */
  34.     private $fp_option_cv_montant;
  35.     /**
  36.      * @ORM\Column(type="boolean", nullable=true)
  37.      */
  38.     private $fp_option_modifiable;
  39.     /**
  40.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  41.      */
  42.     private $fp_option_modifiable_montant;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private $fp_option_paiement_multiple;
  47.     /**
  48.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  49.      */
  50.     private $fp_option_paiement_multiple_montant;
  51.     /**
  52.      * @ORM\Column(type="boolean", nullable=true)
  53.      */
  54.     private $fp_option_coupon_reduction;
  55.     /**
  56.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  57.      */
  58.     private $fp_option_coupon_reduction_montant;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $fp_mode_reglement;
  63.     /**
  64.      * @ORM\Column(type="datetime", nullable=true)
  65.      */
  66.     private $fp_date_second_versement;
  67.     /**
  68.      * @ORM\Column(type="decimal", precision=6, scale=2, nullable=true)
  69.      */
  70.     private $fp_montant_second_versement;
  71.     /**
  72.      * @ORM\OneToOne(targetEntity=Rendezvous::class, cascade={"persist", "remove"})
  73.      * @ORM\JoinColumn(nullable=false)
  74.      */
  75.     private $rendezvous;
  76.     /**
  77.      * @ORM\OneToMany(targetEntity=RendezVousPaiementMultiple::class, mappedBy="rendezvous_facturation", orphanRemoval=true)
  78.      */
  79.     private $rendezVousPaiementMultiples;
  80.     public function __construct()
  81.     {
  82.         $this->rendezVousPaiementMultiples = new ArrayCollection();
  83.     }
  84.     public function getId(): ?int
  85.     {
  86.         return $this->id;
  87.     }
  88.     public function getFpMontantPrestation(): ?string
  89.     {
  90.         return $this->fp_montant_prestation;
  91.     }
  92.     public function setFpMontantPrestation(string $fp_montant_prestation): self
  93.     {
  94.         $this->fp_montant_prestation $fp_montant_prestation;
  95.         return $this;
  96.     }
  97.     public function getFpMontantFraisService(): ?string
  98.     {
  99.         return $this->fp_montant_frais_service;
  100.     }
  101.     public function setFpMontantFraisService(?string $fp_montant_frais_service): self
  102.     {
  103.         $this->fp_montant_frais_service $fp_montant_frais_service;
  104.         return $this;
  105.     }
  106.     public function isFpOptionCv(): ?bool
  107.     {
  108.         return $this->fp_option_cv;
  109.     }
  110.     public function setFpOptionCv(bool $fp_option_cv): self
  111.     {
  112.         $this->fp_option_cv $fp_option_cv;
  113.         return $this;
  114.     }
  115.     public function getFpOptionCvMontant(): ?string
  116.     {
  117.         return $this->fp_option_cv_montant;
  118.     }
  119.     public function setFpOptionCvMontant(?string $fp_option_cv_montant): self
  120.     {
  121.         $this->fp_option_cv_montant $fp_option_cv_montant;
  122.         return $this;
  123.     }
  124.     public function isFpOptionModifiable(): ?bool
  125.     {
  126.         return $this->fp_option_modifiable;
  127.     }
  128.     public function setFpOptionModifiable(bool $fp_option_modifiable): self
  129.     {
  130.         $this->fp_option_modifiable $fp_option_modifiable;
  131.         return $this;
  132.     }
  133.     public function getFpOptionModifiableMontant(): ?string
  134.     {
  135.         return $this->fp_option_modifiable_montant;
  136.     }
  137.     public function setFpOptionModifiableMontant(?string $fp_option_modifiable_montant): self
  138.     {
  139.         $this->fp_option_modifiable_montant $fp_option_modifiable_montant;
  140.         return $this;
  141.     }
  142.     public function isFpOptionPaiementMultiple(): ?bool
  143.     {
  144.         return $this->fp_option_paiement_multiple;
  145.     }
  146.     public function setFpOptionPaiementMultiple(bool $fp_option_paiement_multiple): self
  147.     {
  148.         $this->fp_option_paiement_multiple $fp_option_paiement_multiple;
  149.         return $this;
  150.     }
  151.     public function getFpOptionPaiementMultipleMontant(): ?string
  152.     {
  153.         return $this->fp_option_paiement_multiple_montant;
  154.     }
  155.     public function setFpOptionPaiementMultipleMontant(?string $fp_option_paiement_multiple_montant): self
  156.     {
  157.         $this->fp_option_paiement_multiple_montant $fp_option_paiement_multiple_montant;
  158.         return $this;
  159.     }
  160.     public function isFpOptionCouponReduction(): ?bool
  161.     {
  162.         return $this->fp_option_coupon_reduction;
  163.     }
  164.     public function setFpOptionCouponReduction(bool $fp_option_coupon_reduction): self
  165.     {
  166.         $this->fp_option_coupon_reduction $fp_option_coupon_reduction;
  167.         return $this;
  168.     }
  169.     public function getFpOptionCouponReductionMontant(): ?string
  170.     {
  171.         return $this->fp_option_coupon_reduction_montant;
  172.     }
  173.     public function setFpOptionCouponReductionMontant(?string $fp_option_coupon_reduction_montant): self
  174.     {
  175.         $this->fp_option_coupon_reduction_montant $fp_option_coupon_reduction_montant;
  176.         return $this;
  177.     }
  178.     public function getFpModeReglement(): ?string
  179.     {
  180.         return $this->fp_mode_reglement;
  181.     }
  182.     public function setFpModeReglement(string $fp_mode_reglement): self
  183.     {
  184.         $this->fp_mode_reglement $fp_mode_reglement;
  185.         return $this;
  186.     }
  187.     public function getFpDateSecondVersement(): ?\DateTimeInterface
  188.     {
  189.         return $this->fp_date_second_versement;
  190.     }
  191.     public function setFpDateSecondVersement(?\DateTimeInterface $fp_date_second_versement): self
  192.     {
  193.         $this->fp_date_second_versement $fp_date_second_versement;
  194.         return $this;
  195.     }
  196.     public function getFpMontantSecondVersement(): ?string
  197.     {
  198.         return $this->fp_montant_second_versement;
  199.     }
  200.     public function setFpMontantSecondVersement(?string $fp_montant_second_versement): self
  201.     {
  202.         $this->fp_montant_second_versement $fp_montant_second_versement;
  203.         return $this;
  204.     }
  205.     public function getRendezvous(): ?Rendezvous
  206.     {
  207.         return $this->rendezvous;
  208.     }
  209.     public function setRendezvous(Rendezvous $rendezvous): self
  210.     {
  211.         $this->rendezvous $rendezvous;
  212.         return $this;
  213.     }
  214.     /**
  215.      * @return Collection<int, RendezVousPaiementMultiple>
  216.      */
  217.     public function getRendezVousPaiementMultiples(): Collection
  218.     {
  219.         return $this->rendezVousPaiementMultiples;
  220.     }
  221.     public function addRendezVousPaiementMultiple(RendezVousPaiementMultiple $rendezVousPaiementMultiple): self
  222.     {
  223.         if (!$this->rendezVousPaiementMultiples->contains($rendezVousPaiementMultiple)) {
  224.             $this->rendezVousPaiementMultiples[] = $rendezVousPaiementMultiple;
  225.             $rendezVousPaiementMultiple->setRendezvousFacturation($this);
  226.         }
  227.         return $this;
  228.     }
  229.     public function removeRendezVousPaiementMultiple(RendezVousPaiementMultiple $rendezVousPaiementMultiple): self
  230.     {
  231.         if ($this->rendezVousPaiementMultiples->removeElement($rendezVousPaiementMultiple)) {
  232.             // set the owning side to null (unless already changed)
  233.             if ($rendezVousPaiementMultiple->getRendezvousFacturation() === $this) {
  234.                 $rendezVousPaiementMultiple->setRendezvousFacturation(null);
  235.             }
  236.         }
  237.         return $this;
  238.     }
  239. }