src/Entity/ReglementEcheance.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReglementEcheanceRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ReglementEcheanceRepository::class)
  9.  */
  10. class ReglementEcheance
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToMany(targetEntity=EcheanceInscrit::class, inversedBy="reglementEcheances")
  20.      */
  21.     private $echeanceinscrit;
  22.     /**
  23.      * @ORM\ManyToMany(targetEntity=Reglement::class, inversedBy="reglementEcheances")
  24.      */
  25.     private $reglement;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true)
  28.      */
  29.     private $montantecheanceregle;
  30.     /**
  31.      * @ORM\Column(type="datetime_immutable", nullable=true)
  32.      */
  33.     private $created_at;
  34.     /**
  35.      * @ORM\Column(type="datetime_immutable", nullable=true)
  36.      */
  37.     private $updated_at;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=EnteteFacture::class, inversedBy="reglementEcheances")
  40.      */
  41.     private $enteteFacture;
  42.     public function __construct()
  43.     {
  44.         $this->echeanceinscrit = new ArrayCollection();
  45.         $this->reglement = new ArrayCollection();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     /**
  52.      * @return Collection<int, EcheanceInscrit>
  53.      */
  54.     public function getEcheanceinscrit(): Collection
  55.     {
  56.         return $this->echeanceinscrit;
  57.     }
  58.     public function addEcheanceinscrit(EcheanceInscrit $echeanceinscrit): self
  59.     {
  60.         if (!$this->echeanceinscrit->contains($echeanceinscrit)) {
  61.             $this->echeanceinscrit[] = $echeanceinscrit;
  62.         }
  63.         return $this;
  64.     }
  65.     public function removeEcheanceinscrit(EcheanceInscrit $echeanceinscrit): self
  66.     {
  67.         $this->echeanceinscrit->removeElement($echeanceinscrit);
  68.         return $this;
  69.     }
  70.     /**
  71.      * @return Collection<int, Reglement>
  72.      */
  73.     public function getReglement(): Collection
  74.     {
  75.         return $this->reglement;
  76.     }
  77.     public function addReglement(Reglement $reglement): self
  78.     {
  79.         if (!$this->reglement->contains($reglement)) {
  80.             $this->reglement[] = $reglement;
  81.         }
  82.         return $this;
  83.     }
  84.     public function removeReglement(Reglement $reglement): self
  85.     {
  86.         $this->reglement->removeElement($reglement);
  87.         return $this;
  88.     }
  89.     public function getMontantecheanceregle(): ?float
  90.     {
  91.         return $this->montantecheanceregle;
  92.     }
  93.     public function setMontantecheanceregle(?float $montantecheanceregle): self
  94.     {
  95.         $this->montantecheanceregle $montantecheanceregle;
  96.         return $this;
  97.     }
  98.     public function getCreatedAt(): ?\DateTimeImmutable
  99.     {
  100.         return $this->created_at;
  101.     }
  102.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  103.     {
  104.         $this->created_at $created_at;
  105.         return $this;
  106.     }
  107.     public function getUpdatedAt(): ?\DateTimeImmutable
  108.     {
  109.         return $this->updated_at;
  110.     }
  111.     public function setUpdatedAt(?\DateTimeImmutable $updated_at): self
  112.     {
  113.         $this->updated_at $updated_at;
  114.         return $this;
  115.     }
  116.     public function getEnteteFacture(): ?EnteteFacture
  117.     {
  118.         return $this->enteteFacture;
  119.     }
  120.     public function setEnteteFacture(?EnteteFacture $enteteFacture): self
  121.     {
  122.         $this->enteteFacture $enteteFacture;
  123.         return $this;
  124.     }
  125. }