<?php
namespace App\Entity;
use App\Repository\HistoriqueReglementRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HistoriqueReglementRepository::class)
*/
class HistoriqueReglement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $createdAt;
/**
* @ORM\Column(type="float")
*/
private $montant;
/**
* @ORM\ManyToOne(targetEntity=IctusTypePaiement::class, inversedBy="historiqueReglements")
* @ORM\JoinColumn(nullable=false)
*/
private $typePaiement;
/**
* @ORM\ManyToOne(targetEntity=PrisEnCharge::class, inversedBy="historiqueReglements")
* @ORM\JoinColumn(nullable=false)
*/
private $prisencharge;
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(float $montant): self
{
$this->montant = $montant;
return $this;
}
public function getTypePaiement(): ?IctusTypePaiement
{
return $this->typePaiement;
}
public function setTypePaiement(?IctusTypePaiement $typePaiement): self
{
$this->typePaiement = $typePaiement;
return $this;
}
public function getPrisencharge(): ?PrisEnCharge
{
return $this->prisencharge;
}
public function setPrisencharge(?PrisEnCharge $prisencharge): self
{
$this->prisencharge = $prisencharge;
return $this;
}
}