src/Entity/EcheanceInscrit.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EcheanceInscritRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EcheanceInscritRepository::class)
  9.  */
  10. class EcheanceInscrit
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Financement::class, inversedBy="echeanceInscrits")
  20.      * @ORM\JoinColumn(nullable=true)
  21.      */
  22.     private $financement;
  23.         /**
  24.      * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="reglementParticuliers")
  25.      */
  26.     private $session;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="reglementParticuliers")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $tier;
  32.     /**
  33.      * @ORM\Column(type="date", nullable=true)
  34.      */
  35.     private $dateecheance;
  36.     /**
  37.      * @ORM\Column(type="float", nullable=true)
  38.      */
  39.     private $montantecheance;
  40.     /**
  41.      * @ORM\Column(type="datetime_immutable", nullable=true)
  42.      */
  43.     private $created_at;
  44.     /**
  45.      * @ORM\Column(type="datetime_immutable", nullable=true)
  46.      */
  47.     private $updated_at;
  48.     /**
  49.      * @ORM\Column(type="float", nullable=true)
  50.      */
  51.     private $montantregle;
  52.     /**
  53.      * @ORM\Column(type="float", nullable=true)
  54.      */
  55.     private $restearegler;
  56.     /**
  57.      * @ORM\ManyToMany(targetEntity=ReglementEcheance::class, mappedBy="echeanceinscrit", cascade={"persist"})
  58.      */
  59.     private $reglementEcheances;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=EnteteFacture::class, inversedBy="echeanceInscrits")
  62.      */
  63.     private $enteteFacture;
  64.     public function __construct()
  65.     {
  66.         $this->reglementEcheances = new ArrayCollection();
  67.     }
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getSession(): ?Session
  73.     {
  74.         return $this->session;
  75.     }
  76.     public function setSession(?Session $session): self
  77.     {
  78.         $this->session $session;
  79.         return $this;
  80.     }
  81.     public function getTier(): ?Tier
  82.     {
  83.         return $this->tier;
  84.     }
  85.     public function setTier(?Tier $tier): self
  86.     {
  87.         $this->tier $tier;
  88.         return $this;
  89.     }
  90.     public function getFinancement(): ?Financement
  91.     {
  92.         return $this->financement;
  93.     }
  94.     public function setFinancement(?Financement $financement): self
  95.     {
  96.         $this->financement $financement;
  97.         return $this;
  98.     }
  99.     public function getDateecheance(): ?\DateTimeInterface
  100.     {
  101.         return $this->dateecheance;
  102.     }
  103.     public function setDateecheance(?\DateTimeInterface $dateecheance): self
  104.     {
  105.         $this->dateecheance $dateecheance;
  106.         return $this;
  107.     }
  108.     public function getMontantecheance(): ?float
  109.     {
  110.         return $this->montantecheance;
  111.     }
  112.     public function setMontantecheance(?float $montantecheance): self
  113.     {
  114.         $this->montantecheance $montantecheance;
  115.         return $this;
  116.     }
  117.     public function getCreatedAt(): ?\DateTimeImmutable
  118.     {
  119.         return $this->created_at;
  120.     }
  121.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  122.     {
  123.         $this->created_at $created_at;
  124.         return $this;
  125.     }
  126.     public function getUpdatedAt(): ?\DateTimeImmutable
  127.     {
  128.         return $this->updated_at;
  129.     }
  130.     public function setUpdatedAt(?\DateTimeImmutable $updated_at): self
  131.     {
  132.         $this->updated_at $updated_at;
  133.         return $this;
  134.     }
  135.     public function getMontantregle(): ?float
  136.     {
  137.         return $this->montantregle;
  138.     }
  139.     public function setMontantregle(?float $montantregle): self
  140.     {
  141.         $this->montantregle $montantregle;
  142.         return $this;
  143.     }
  144.     public function getRestearegler(): ?float
  145.     {
  146.         return $this->restearegler;
  147.     }
  148.     public function setRestearegler(?float $restearegler): self
  149.     {
  150.         $this->restearegler $restearegler;
  151.         return $this;
  152.     }
  153.     /**
  154.      * @return Collection<int, ReglementEcheance>
  155.      */
  156.     public function getReglementEcheances(): Collection
  157.     {
  158.         return $this->reglementEcheances;
  159.     }
  160.     public function addReglementEcheance(ReglementEcheance $reglementEcheance): self
  161.     {
  162.         if (!$this->reglementEcheances->contains($reglementEcheance)) {
  163.             $this->reglementEcheances[] = $reglementEcheance;
  164.             $reglementEcheance->addEcheanceinscrit($this);
  165.         }
  166.         return $this;
  167.     }
  168.     public function removeReglementEcheance(ReglementEcheance $reglementEcheance): self
  169.     {
  170.         if ($this->reglementEcheances->removeElement($reglementEcheance)) {
  171.             $reglementEcheance->removeEcheanceinscrit($this);
  172.         }
  173.         return $this;
  174.     }
  175.     public function getEnteteFacture(): ?EnteteFacture
  176.     {
  177.         return $this->enteteFacture;
  178.     }
  179.     public function setEnteteFacture(?EnteteFacture $enteteFacture): self
  180.     {
  181.         $this->enteteFacture $enteteFacture;
  182.         return $this;
  183.     }
  184. }