src/Entity/Reglement.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReglementRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ReglementRepository::class)
  9.  */
  10. class Reglement
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="reglementParticuliers")
  20.      */
  21.     private $session;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="reglementParticuliers")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $tier;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=Site::class)
  29.      */
  30.     private $site;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=MoyPaiement::class, inversedBy="reglements")
  33.      * @ORM\JoinColumn(nullable=false)
  34.      */
  35.     private $modpaiement;
  36.     /**
  37.      * @ORM\Column(type="date",nullable=true)
  38.      */
  39.     private $data;
  40.     /**
  41.      * @ORM\Column(type="float")
  42.      */
  43.     private $montant;
  44.     /**
  45.      * @ORM\Column(type="float",nullable="true")
  46.      */
  47.     private $restepayer;
  48.     /**
  49.      * @ORM\Column(type="datetime")
  50.      */
  51.     private $createdat;
  52.     /**
  53.      * @ORM\Column(type="datetime", nullable=true)
  54.      */
  55.     private $updateat;
  56.     /**
  57.      * @ORM\ManyToOne(targetEntity=Financement::class, inversedBy="reglements",cascade={"persist"})
  58.      * @ORM\JoinColumn(nullable=true)
  59.      */
  60.     private $financement;
  61.     /**
  62.      * @ORM\Column(type="boolean", nullable=true)
  63.      */
  64.     private $is_deleted;
  65.     /**
  66.      * @ORM\Column(type="float", nullable=true)
  67.      */
  68.     private $montantimpute;
  69.     /**
  70.      * @ORM\Column(type="float", nullable=true)
  71.      */
  72.     private $resteaimputer;
  73.     /**
  74.      * @ORM\ManyToMany(targetEntity=ReglementEcheance::class, mappedBy="reglement")
  75.      */
  76.     private $reglementEcheances;
  77.     /**
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      */
  80.     private $noteReglement;
  81.     public function __construct()
  82.     {
  83.         $this->montantimpute 0;
  84.         $this->reglementEcheances = new ArrayCollection();
  85.     }
  86.     public function getId(): ?int
  87.     {
  88.         return $this->id;
  89.     }
  90.     public function getSession(): ?Session
  91.     {
  92.         return $this->session;
  93.     }
  94.     public function setSession(?Session $session): self
  95.     {
  96.         $this->session $session;
  97.         return $this;
  98.     }
  99.     public function getTier(): ?Tier
  100.     {
  101.         return $this->tier;
  102.     }
  103.     public function setTier(?Tier $tier): self
  104.     {
  105.         $this->tier $tier;
  106.         return $this;
  107.     }
  108.     public function getSite(): ?Site
  109.     {
  110.         return $this->site;
  111.     }
  112.     public function setSite(?Site $site): self
  113.     {
  114.         $this->site $site;
  115.         return $this;
  116.     }
  117.     public function getModpaiement(): ?MoyPaiement
  118.     {
  119.         return $this->modpaiement;
  120.     }
  121.     public function setModpaiement(?MoyPaiement $modpaiement): self
  122.     {
  123.         $this->modpaiement $modpaiement;
  124.         return $this;
  125.     }
  126.     public function getData(): ?\DateTimeInterface
  127.     {
  128.         return $this->data;
  129.     }
  130.     public function setData(\DateTimeInterface $data): self
  131.     {
  132.         $this->data $data;
  133.         return $this;
  134.     }
  135.     public function getMontant(): ?float
  136.     {
  137.         return $this->montant;
  138.     }
  139.     public function setMontant(float $montant): self
  140.     {
  141.         $this->montant $montant;
  142.         return $this;
  143.     }
  144.     public function getRestepayer(): ?float
  145.     {
  146.         return $this->restepayer;
  147.     }
  148.     public function setRestepayer(float $restepayer): self
  149.     {
  150.         $this->restepayer $restepayer;
  151.         return $this;
  152.     }
  153.     public function getCreatedat(): ?\DateTimeInterface
  154.     {
  155.         return $this->createdat;
  156.     }
  157.     public function setCreatedat(\DateTimeInterface $createdat): self
  158.     {
  159.         $this->createdat $createdat;
  160.         return $this;
  161.     }
  162.     public function getUpdateat(): ?\DateTimeInterface
  163.     {
  164.         return $this->updateat;
  165.     }
  166.     public function setUpdateat(?\DateTimeInterface $updateat): self
  167.     {
  168.         $this->updateat $updateat;
  169.         return $this;
  170.     }
  171.     public function getFinancement(): ?Financement
  172.     {
  173.         return $this->financement;
  174.     }
  175.     public function setFinancement(?Financement $financement): self
  176.     {
  177.         $this->financement $financement;
  178.         return $this;
  179.     }
  180.     public function isIsDeleted(): ?bool
  181.     {
  182.         return $this->is_deleted;
  183.     }
  184.     public function setIsDeleted(?bool $is_deleted): self
  185.     {
  186.         $this->is_deleted $is_deleted;
  187.         return $this;
  188.     }
  189.     public function getMontantimpute(): ?float
  190.     {
  191.         return $this->montantimpute;
  192.     }
  193.     public function setMontantimpute(?float $montantimpute): self
  194.     {
  195.         $this->montantimpute $montantimpute;
  196.         return $this;
  197.     }
  198.     public function getResteaimputer(): ?float
  199.     {
  200.         return $this->resteaimputer;
  201.     }
  202.     public function setResteaimputer(?float $resteaimputer): self
  203.     {
  204.         $this->resteaimputer $resteaimputer;
  205.         return $this;
  206.     }
  207.     /**
  208.      * @return Collection<int, ReglementEcheance>
  209.      */
  210.     public function getReglementEcheances(): Collection
  211.     {
  212.         return $this->reglementEcheances;
  213.     }
  214.     public function addReglementEcheance(ReglementEcheance $reglementEcheance): self
  215.     {
  216.         if (!$this->reglementEcheances->contains($reglementEcheance)) {
  217.             $this->reglementEcheances[] = $reglementEcheance;
  218.             $reglementEcheance->addReglement($this);
  219.         }
  220.         return $this;
  221.     }
  222.     public function removeReglementEcheance(ReglementEcheance $reglementEcheance): self
  223.     {
  224.         if ($this->reglementEcheances->removeElement($reglementEcheance)) {
  225.             $reglementEcheance->removeReglement($this);
  226.         }
  227.         return $this;
  228.     }
  229.     public function getNoteReglement(): ?string
  230.     {
  231.         return $this->noteReglement;
  232.     }
  233.     public function setNoteReglement(?string $noteReglement): self
  234.     {
  235.         $this->noteReglement $noteReglement;
  236.         return $this;
  237.     }
  238. }