src/Entity/ReglementParticulier.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReglementParticulierRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ReglementParticulierRepository::class)
  7.  */
  8. class ReglementParticulier
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="reglementParticuliers")
  18.      */
  19.     private $session;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="reglementParticuliers")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $tier;
  25.     /**
  26.      * @ORM\Column(type="float")
  27.      */
  28.     private $montant;
  29.     /**
  30.      * @ORM\Column(type="float", nullable=true)
  31.      */
  32.     private $montantimpute;
  33.     /**
  34.      * @ORM\Column(type="float", nullable=true)
  35.      */
  36.     private $resteaimputer;
  37.     /**
  38.      * @ORM\Column(type="datetime_immutable", nullable=true)
  39.      */
  40.     private $createdeat;
  41.     /**
  42.      * @ORM\Column(type="datetime_immutable", nullable=true)
  43.      */
  44.     private $updatedat;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity=Site::class)
  47.      */
  48.     private $site;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=MoyPaiement::class, inversedBy="reglementParticuliers")
  51.      */
  52.     private $modpaiement;
  53.     /**
  54.      * @ORM\Column(type="date", nullable=true)
  55.      */
  56.     private $datereglement;
  57.     public function __construct()
  58.     {
  59.         $this->montantimpute 0;
  60.         $this->createdeat = new \DateTimeImmutable();
  61.     }
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getSession(): ?Session
  67.     {
  68.         return $this->session;
  69.     }
  70.     public function setSession(?Session $session): self
  71.     {
  72.         $this->session $session;
  73.         return $this;
  74.     }
  75.     public function getTier(): ?Tier
  76.     {
  77.         return $this->tier;
  78.     }
  79.     public function setTier(?Tier $tier): self
  80.     {
  81.         $this->tier $tier;
  82.         return $this;
  83.     }
  84.     public function getMontant(): ?float
  85.     {
  86.         return $this->montant;
  87.     }
  88.     public function setMontant(float $montant): self
  89.     {
  90.         $this->montant $montant;
  91.         return $this;
  92.     }
  93.     public function getMontantimpute(): ?float
  94.     {
  95.         return $this->montantimpute;
  96.     }
  97.     public function setMontantimpute(?float $montantimpute): self
  98.     {
  99.         $this->montantimpute $montantimpute;
  100.         return $this;
  101.     }
  102.     public function getResteaimputer(): ?float
  103.     {
  104.         return $this->resteaimputer;
  105.     }
  106.     public function setResteaimputer(?float $resteaimputer): self
  107.     {
  108.         $this->resteaimputer $resteaimputer;
  109.         return $this;
  110.     }
  111.     public function getCreatedeat(): ?\DateTimeImmutable
  112.     {
  113.         return $this->createdeat;
  114.     }
  115.     public function setCreatedeat(?\DateTimeImmutable $createdeat): self
  116.     {
  117.         $this->createdeat $createdeat;
  118.         return $this;
  119.     }
  120.     public function getUpdatedat(): ?\DateTimeImmutable
  121.     {
  122.         return $this->updatedat;
  123.     }
  124.     public function setUpdatedat(?\DateTimeImmutable $updatedat): self
  125.     {
  126.         $this->updatedat $updatedat;
  127.         return $this;
  128.     }
  129.     public function getSite(): ?Site
  130.     {
  131.         return $this->site;
  132.     }
  133.     public function setSite(?Site $site): self
  134.     {
  135.         $this->site $site;
  136.         return $this;
  137.     }
  138.     public function getModpaiement(): ?MoyPaiement
  139.     {
  140.         return $this->modpaiement;
  141.     }
  142.     public function setModpaiement(?MoyPaiement $modpaiement): self
  143.     {
  144.         $this->modpaiement $modpaiement;
  145.         return $this;
  146.     }
  147.     public function getDatereglement(): ?\DateTimeInterface
  148.     {
  149.         return $this->datereglement;
  150.     }
  151.     public function setDatereglement(?\DateTimeInterface $datereglement): self
  152.     {
  153.         $this->datereglement $datereglement;
  154.         return $this;
  155.     }
  156. }