src/Entity/EnteteFacture.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EnteteFactureRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EnteteFactureRepository::class)
  9.  */
  10. class EnteteFacture
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $numerofacture;
  22.     /**
  23.      * @ORM\Column(type="date", nullable=true)
  24.      */
  25.     private $datefacture;
  26.     /**
  27.      * @ORM\Column(type="date", nullable=true)
  28.      */
  29.     private $dateecheance;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $reference;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $statut;
  38.     /**
  39.      * @ORM\Column(type="datetime_immutable", nullable=true)
  40.      */
  41.     private $created_at;
  42.     /**
  43.      * @ORM\Column(type="datetime_immutable", nullable=true)
  44.      */
  45.     private $updated_at;
  46.     /**
  47.      * @ORM\OneToMany(targetEntity=Inscrit::class, mappedBy="entetefacture")
  48.      */
  49.     private $inscrits;
  50.     /**
  51.      * @ORM\OneToMany(targetEntity=LigneFacture::class, mappedBy="entetefacture",cascade={"persist"})
  52.      */
  53.     private $ligneFactures;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $typeclient;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $statutreglement;
  62.     /**
  63.      * @ORM\OneToMany(targetEntity=ReglementFactureInscrit::class, mappedBy="entetefacture")
  64.      */
  65.     private $enteteReglementFactureInscrits;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $payeur;
  70.     /**
  71.      * @ORM\ManyToOne(targetEntity=Site::class, inversedBy="enteteFactures")
  72.      */
  73.     private $site;
  74.     /**
  75.      * @ORM\OneToMany(targetEntity=LigneFacturePrint::class, mappedBy="enteteFacture")
  76.      */
  77.     private $ligneFacturePrints;
  78.     /**
  79.      * @ORM\ManyToOne(targetEntity=Tier::class)
  80.      */
  81.     private $tier;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity=Entreprise::class, inversedBy="enteteFactures")
  84.      */
  85.     private $entreprise;
  86.     /**
  87.      * @ORM\ManyToOne(targetEntity=Organisme::class, inversedBy="enteteFactures")
  88.      */
  89.     private $organisme;
  90.     /**
  91.      * @ORM\OneToMany(targetEntity=EcheanceInscrit::class, mappedBy="enteteFacture")
  92.      */
  93.     private $echeanceInscrits;
  94.     /**
  95.      * @ORM\Column(type="float", nullable=true)
  96.      */
  97.     private $montant;
  98.     /**
  99.      * @ORM\Column(type="float", nullable=true)
  100.      */
  101.     private $montantRegle;
  102.     /**
  103.      * @ORM\Column(type="float", nullable=true)
  104.      */
  105.     private $resteAregler;
  106.     /**
  107.      * @ORM\OneToMany(targetEntity=ReglementEcheance::class, mappedBy="enteteFacture")
  108.      */
  109.     private $reglementEcheances;
  110.     public function __construct()
  111.     {
  112.         $this->inscrits = new ArrayCollection();
  113.         $this->ligneFactures = new ArrayCollection();
  114.         $this->enteteReglementFactureInscrits = new ArrayCollection();
  115.         $this->ligneFacturePrints = new ArrayCollection();
  116.         $this->echeanceInscrits = new ArrayCollection();
  117.         $this->reglementEcheances = new ArrayCollection();
  118.     }
  119.     public function getId(): ?int
  120.     {
  121.         return $this->id;
  122.     }
  123.     public function getNumerofacture(): ?string
  124.     {
  125.         return $this->numerofacture;
  126.     }
  127.     public function setNumerofacture(string $numerofacture): self
  128.     {
  129.         $this->numerofacture $numerofacture;
  130.         return $this;
  131.     }
  132.     public function getDatefacture(): ?\DateTimeInterface
  133.     {
  134.         return $this->datefacture;
  135.     }
  136.     public function setDatefacture(?\DateTimeInterface $datefacture): self
  137.     {
  138.         $this->datefacture $datefacture;
  139.         return $this;
  140.     }
  141.     public function getDateecheance(): ?\DateTimeInterface
  142.     {
  143.         return $this->dateecheance;
  144.     }
  145.     public function setDateecheance(?\DateTimeInterface $dateecheance): self
  146.     {
  147.         $this->dateecheance $dateecheance;
  148.         return $this;
  149.     }
  150.     public function getReference(): ?string
  151.     {
  152.         return $this->reference;
  153.     }
  154.     public function setReference(?string $reference): self
  155.     {
  156.         $this->reference $reference;
  157.         return $this;
  158.     }
  159.     public function getStatut(): ?string
  160.     {
  161.         return $this->statut;
  162.     }
  163.     public function setStatut(?string $statut): self
  164.     {
  165.         $this->statut $statut;
  166.         return $this;
  167.     }
  168.     public function getCreatedAt(): ?\DateTimeImmutable
  169.     {
  170.         return $this->created_at;
  171.     }
  172.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  173.     {
  174.         $this->created_at $created_at;
  175.         return $this;
  176.     }
  177.     public function getUpdatedAt(): ?\DateTimeImmutable
  178.     {
  179.         return $this->updated_at;
  180.     }
  181.     public function setUpdatedAt(?\DateTimeImmutable $updated_at): self
  182.     {
  183.         $this->updated_at $updated_at;
  184.         return $this;
  185.     }
  186.     /**
  187.      * @return Collection<int, Inscrit>
  188.      */
  189.     public function getInscrits(): Collection
  190.     {
  191.         return $this->inscrits;
  192.     }
  193.     public function addInscrit(Inscrit $inscrit): self
  194.     {
  195.         if (!$this->inscrits->contains($inscrit)) {
  196.             $this->inscrits[] = $inscrit;
  197.             $inscrit->setEntetefacture($this);
  198.         }
  199.         return $this;
  200.     }
  201.     public function removeInscrit(Inscrit $inscrit): self
  202.     {
  203.         if ($this->inscrits->removeElement($inscrit)) {
  204.             // set the owning side to null (unless already changed)
  205.             if ($inscrit->getEntetefacture() === $this) {
  206.                 $inscrit->setEntetefacture(null);
  207.             }
  208.         }
  209.         return $this;
  210.     }
  211.     /**
  212.      * @return Collection<int, LigneFacture>
  213.      */
  214.     public function getLigneFactures(): Collection
  215.     {
  216.         return $this->ligneFactures;
  217.     }
  218.     public function addLigneFacture(LigneFacture $ligneFacture): self
  219.     {
  220.         if (!$this->ligneFactures->contains($ligneFacture)) {
  221.             $this->ligneFactures[] = $ligneFacture;
  222.             $ligneFacture->setEntetefacture($this);
  223.         }
  224.         return $this;
  225.     }
  226.     public function removeLigneFacture(LigneFacture $ligneFacture): self
  227.     {
  228.         if ($this->ligneFactures->removeElement($ligneFacture)) {
  229.             // set the owning side to null (unless already changed)
  230.             if ($ligneFacture->getEntetefacture() === $this) {
  231.                 $ligneFacture->setEntetefacture(null);
  232.             }
  233.         }
  234.         return $this;
  235.     }
  236.     public function getTypeclient(): ?string
  237.     {
  238.         return $this->typeclient;
  239.     }
  240.     public function setTypeclient(?string $typeclient): self
  241.     {
  242.         $this->typeclient $typeclient;
  243.         return $this;
  244.     }
  245.     public function getStatutreglement(): ?string
  246.     {
  247.         return $this->statutreglement;
  248.     }
  249.     public function setStatutreglement(?string $statutreglement): self
  250.     {
  251.         $this->statutreglement $statutreglement;
  252.         return $this;
  253.     }
  254.     /**
  255.      * @return Collection<int, ReglementFactureInscrit>
  256.      */
  257.     public function getEnteteReglementFactureInscrits(): Collection
  258.     {
  259.         return $this->enteteReglementFactureInscrits;
  260.     }
  261.     public function addEnteteReglementFactureInscrit(ReglementFactureInscrit $enteteReglementFactureInscrit): self
  262.     {
  263.         if (!$this->enteteReglementFactureInscrits->contains($enteteReglementFactureInscrit)) {
  264.             $this->enteteReglementFactureInscrits[] = $enteteReglementFactureInscrit;
  265.             $enteteReglementFactureInscrit->setEntetefacture($this);
  266.         }
  267.         return $this;
  268.     }
  269.     public function removeEnteteReglementFactureInscrit(ReglementFactureInscrit $enteteReglementFactureInscrit): self
  270.     {
  271.         if ($this->enteteReglementFactureInscrits->removeElement($enteteReglementFactureInscrit)) {
  272.             // set the owning side to null (unless already changed)
  273.             if ($enteteReglementFactureInscrit->getEntetefacture() === $this) {
  274.                 $enteteReglementFactureInscrit->setEntetefacture(null);
  275.             }
  276.         }
  277.         return $this;
  278.     }
  279.     public function getPayeur(): ?string
  280.     {
  281.         return $this->payeur;
  282.     }
  283.     public function setPayeur(?string $payeur): self
  284.     {
  285.         $this->payeur $payeur;
  286.         return $this;
  287.     }
  288.     public function getSite(): ?Site
  289.     {
  290.         return $this->site;
  291.     }
  292.     public function setSite(?Site $site): self
  293.     {
  294.         $this->site $site;
  295.         return $this;
  296.     }
  297.     /**
  298.      * @return Collection<int, LigneFacturePrint>
  299.      */
  300.     public function getLigneFacturePrints(): Collection
  301.     {
  302.         return $this->ligneFacturePrints;
  303.     }
  304.     public function addLigneFacturePrint(LigneFacturePrint $ligneFacturePrint): self
  305.     {
  306.         if (!$this->ligneFacturePrints->contains($ligneFacturePrint)) {
  307.             $this->ligneFacturePrints[] = $ligneFacturePrint;
  308.             $ligneFacturePrint->setEnteteFacture($this);
  309.         }
  310.         return $this;
  311.     }
  312.     public function removeLigneFacturePrint(LigneFacturePrint $ligneFacturePrint): self
  313.     {
  314.         if ($this->ligneFacturePrints->removeElement($ligneFacturePrint)) {
  315.             // set the owning side to null (unless already changed)
  316.             if ($ligneFacturePrint->getEnteteFacture() === $this) {
  317.                 $ligneFacturePrint->setEnteteFacture(null);
  318.             }
  319.         }
  320.         return $this;
  321.     }
  322.     public function getTier(): ?Tier
  323.     {
  324.         return $this->tier;
  325.     }
  326.     public function setTier(?Tier $tier): self
  327.     {
  328.         $this->tier $tier;
  329.         return $this;
  330.     }
  331.     public function getEntreprise(): ?Entreprise
  332.     {
  333.         return $this->entreprise;
  334.     }
  335.     public function setEntreprise(?Entreprise $entreprise): self
  336.     {
  337.         $this->entreprise $entreprise;
  338.         return $this;
  339.     }
  340.     public function getOrganisme(): ?Organisme
  341.     {
  342.         return $this->organisme;
  343.     }
  344.     public function setOrganisme(?Organisme $organisme): self
  345.     {
  346.         $this->organisme $organisme;
  347.         return $this;
  348.     }
  349.     /**
  350.      * @return Collection<int, EcheanceInscrit>
  351.      */
  352.     public function getEcheanceInscrits(): Collection
  353.     {
  354.         return $this->echeanceInscrits;
  355.     }
  356.     public function addEcheanceInscrit(EcheanceInscrit $echeanceInscrit): self
  357.     {
  358.         if (!$this->echeanceInscrits->contains($echeanceInscrit)) {
  359.             $this->echeanceInscrits[] = $echeanceInscrit;
  360.             $echeanceInscrit->setEnteteFacture($this);
  361.         }
  362.         return $this;
  363.     }
  364.     public function removeEcheanceInscrit(EcheanceInscrit $echeanceInscrit): self
  365.     {
  366.         if ($this->echeanceInscrits->removeElement($echeanceInscrit)) {
  367.             // set the owning side to null (unless already changed)
  368.             if ($echeanceInscrit->getEnteteFacture() === $this) {
  369.                 $echeanceInscrit->setEnteteFacture(null);
  370.             }
  371.         }
  372.         return $this;
  373.     }
  374.     public function getMontant(): ?float
  375.     {
  376.         return $this->montant;
  377.     }
  378.     public function setMontant(?float $montant): self
  379.     {
  380.         $this->montant $montant;
  381.         return $this;
  382.     }
  383.     public function getMontantRegle(): ?float
  384.     {
  385.         return $this->montantRegle;
  386.     }
  387.     public function setMontantRegle(?float $montantRegle): self
  388.     {
  389.         $this->montantRegle $montantRegle;
  390.         return $this;
  391.     }
  392.     public function getResteAregler(): ?float
  393.     {
  394.         return $this->resteAregler;
  395.     }
  396.     public function setResteAregler(?float $resteAregler): self
  397.     {
  398.         $this->resteAregler $resteAregler;
  399.         return $this;
  400.     }
  401.     /**
  402.      * @return Collection<int, ReglementEcheance>
  403.      */
  404.     public function getReglementEcheances(): Collection
  405.     {
  406.         return $this->reglementEcheances;
  407.     }
  408.     public function addReglementEcheance(ReglementEcheance $reglementEcheance): self
  409.     {
  410.         if (!$this->reglementEcheances->contains($reglementEcheance)) {
  411.             $this->reglementEcheances[] = $reglementEcheance;
  412.             $reglementEcheance->setEnteteFacture($this);
  413.         }
  414.         return $this;
  415.     }
  416.     public function removeReglementEcheance(ReglementEcheance $reglementEcheance): self
  417.     {
  418.         if ($this->reglementEcheances->removeElement($reglementEcheance)) {
  419.             // set the owning side to null (unless already changed)
  420.             if ($reglementEcheance->getEnteteFacture() === $this) {
  421.                 $reglementEcheance->setEnteteFacture(null);
  422.             }
  423.         }
  424.         return $this;
  425.     }
  426. }