src/Entity/ReglementEntreprise.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReglementEntrepriseRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ReglementEntrepriseRepository::class)
  9.  */
  10. class ReglementEntreprise
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=MoyPaiement::class)
  20.      */
  21.     private $modpaiement;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Entreprise::class, inversedBy="reglementEntreprises")
  24.      */
  25.     private $entreprise;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Organisme::class, inversedBy="reglementEntreprises")
  28.      */
  29.     private $organisme;
  30.     /**
  31.      * @ORM\Column(type="float", nullable=true)
  32.      */
  33.     private $montant;
  34.     /**
  35.      * @ORM\Column(type="float", nullable=true)
  36.      */
  37.     private $montantimpute;
  38.     /**
  39.      * @ORM\Column(type="float", nullable=true)
  40.      */
  41.     private $resteaimputer;
  42.     /**
  43.      * @ORM\Column(type="datetime_immutable", nullable=true)
  44.      */
  45.     private $created_at;
  46.     /**
  47.      * @ORM\Column(type="datetime_immutable", nullable=true)
  48.      */
  49.     private $updated_at;
  50.     /**
  51.      * @ORM\OneToMany(targetEntity=ReglementFactureEntreprise::class, mappedBy="reglemententreprise")
  52.      */
  53.     private $reglementFactureEntreprises;
  54.     /**
  55.      * @ORM\Column(type="date", nullable=true)
  56.      */
  57.     private $datereglement;
  58.     /**
  59.      * @ORM\OneToMany(targetEntity=ReglementFactureInscrit::class, mappedBy="reglemententreprise")
  60.      */
  61.     private $reglementFactureInscrits;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Site::class)
  64.      */
  65.     private $site;
  66.     /**
  67.      * @ORM\OneToMany(targetEntity=LigneFacturePrint::class, mappedBy="reglementNegatif")
  68.      */
  69.     private $ligneFacturePrints;
  70.     /**
  71.      * @ORM\Column(type="string", length=255, nullable=true)
  72.      */
  73.     private $noteReglement;
  74.     public function __construct()
  75.     {
  76.         $this->reglementFactureEntreprises = new ArrayCollection();
  77.         $this->reglementFactureInscrits = new ArrayCollection();
  78.         $this->ligneFacturePrints = new ArrayCollection();
  79.     }
  80.     public function getId(): ?int
  81.     {
  82.         return $this->id;
  83.     }
  84.     public function getModpaiement(): ?MoyPaiement
  85.     {
  86.         return $this->modpaiement;
  87.     }
  88.     public function setModpaiement(?MoyPaiement $modpaiement): self
  89.     {
  90.         $this->modpaiement $modpaiement;
  91.         return $this;
  92.     }
  93.     public function getEntreprise(): ?Entreprise
  94.     {
  95.         return $this->entreprise;
  96.     }
  97.     public function setEntreprise(?Entreprise $entreprise): self
  98.     {
  99.         $this->entreprise $entreprise;
  100.         return $this;
  101.     }
  102.     public function getOrganisme(): ?Organisme
  103.     {
  104.         return $this->organisme;
  105.     }
  106.     public function setOrganisme(?Organisme $organisme): self
  107.     {
  108.         $this->organisme $organisme;
  109.         return $this;
  110.     }
  111.     public function getMontant(): ?float
  112.     {
  113.         return $this->montant;
  114.     }
  115.     public function setMontant(?float $montant): self
  116.     {
  117.         $this->montant $montant;
  118.         return $this;
  119.     }
  120.     public function getMontantimpute(): ?float
  121.     {
  122.         return $this->montantimpute;
  123.     }
  124.     public function setMontantimpute(?float $montantimpute): self
  125.     {
  126.         $this->montantimpute $montantimpute;
  127.         return $this;
  128.     }
  129.     public function getResteaimputer(): ?float
  130.     {
  131.         return $this->resteaimputer;
  132.     }
  133.     public function setResteaimputer(?float $resteaimputer): self
  134.     {
  135.         $this->resteaimputer $resteaimputer;
  136.         return $this;
  137.     }
  138.     public function getCreatedAt(): ?\DateTimeImmutable
  139.     {
  140.         return $this->created_at;
  141.     }
  142.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  143.     {
  144.         $this->created_at $created_at;
  145.         return $this;
  146.     }
  147.     public function getUpdatedAt(): ?\DateTimeImmutable
  148.     {
  149.         return $this->updated_at;
  150.     }
  151.     public function setUpdatedAt(?\DateTimeImmutable $updated_at): self
  152.     {
  153.         $this->updated_at $updated_at;
  154.         return $this;
  155.     }
  156.     /**
  157.      * @return Collection<int, ReglementFactureEntreprise>
  158.      */
  159.     public function getReglementFactureEntreprises(): Collection
  160.     {
  161.         return $this->reglementFactureEntreprises;
  162.     }
  163.     public function addReglementFactureEntreprise(ReglementFactureEntreprise $reglementFactureEntreprise): self
  164.     {
  165.         if (!$this->reglementFactureEntreprises->contains($reglementFactureEntreprise)) {
  166.             $this->reglementFactureEntreprises[] = $reglementFactureEntreprise;
  167.             $reglementFactureEntreprise->setReglemententreprise($this);
  168.         }
  169.         return $this;
  170.     }
  171.     public function removeReglementFactureEntreprise(ReglementFactureEntreprise $reglementFactureEntreprise): self
  172.     {
  173.         if ($this->reglementFactureEntreprises->removeElement($reglementFactureEntreprise)) {
  174.             // set the owning side to null (unless already changed)
  175.             if ($reglementFactureEntreprise->getReglemententreprise() === $this) {
  176.                 $reglementFactureEntreprise->setReglemententreprise(null);
  177.             }
  178.         }
  179.         return $this;
  180.     }
  181.     public function getDatereglement(): ?\DateTimeInterface
  182.     {
  183.         return $this->datereglement;
  184.     }
  185.     public function setDatereglement(?\DateTimeInterface $datereglement): self
  186.     {
  187.         $this->datereglement $datereglement;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, ReglementFactureInscrit>
  192.      */
  193.     public function getReglementFactureInscrits(): Collection
  194.     {
  195.         return $this->reglementFactureInscrits;
  196.     }
  197.     public function addReglementFactureInscrit(ReglementFactureInscrit $reglementFactureInscrit): self
  198.     {
  199.         if (!$this->reglementFactureInscrits->contains($reglementFactureInscrit)) {
  200.             $this->reglementFactureInscrits[] = $reglementFactureInscrit;
  201.             $reglementFactureInscrit->setReglemententreprise($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeReglementFactureInscrit(ReglementFactureInscrit $reglementFactureInscrit): self
  206.     {
  207.         if ($this->reglementFactureInscrits->removeElement($reglementFactureInscrit)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($reglementFactureInscrit->getReglemententreprise() === $this) {
  210.                 $reglementFactureInscrit->setReglemententreprise(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215.     public function getSite(): ?Site
  216.     {
  217.         return $this->site;
  218.     }
  219.     public function setSite(?Site $site): self
  220.     {
  221.         $this->site $site;
  222.         return $this;
  223.     }
  224.     /**
  225.      * @return Collection<int, LigneFacturePrint>
  226.      */
  227.     public function getLigneFacturePrints(): Collection
  228.     {
  229.         return $this->ligneFacturePrints;
  230.     }
  231.     public function addLigneFacturePrint(LigneFacturePrint $ligneFacturePrint): self
  232.     {
  233.         if (!$this->ligneFacturePrints->contains($ligneFacturePrint)) {
  234.             $this->ligneFacturePrints[] = $ligneFacturePrint;
  235.             $ligneFacturePrint->setReglementNegatif($this);
  236.         }
  237.         return $this;
  238.     }
  239.     public function removeLigneFacturePrint(LigneFacturePrint $ligneFacturePrint): self
  240.     {
  241.         if ($this->ligneFacturePrints->removeElement($ligneFacturePrint)) {
  242.             // set the owning side to null (unless already changed)
  243.             if ($ligneFacturePrint->getReglementNegatif() === $this) {
  244.                 $ligneFacturePrint->setReglementNegatif(null);
  245.             }
  246.         }
  247.         return $this;
  248.     }
  249.     public function getNoteReglement(): ?string
  250.     {
  251.         return $this->noteReglement;
  252.     }
  253.     public function setNoteReglement(?string $noteReglement): self
  254.     {
  255.         $this->noteReglement $noteReglement;
  256.         return $this;
  257.     }
  258. }