<?php
namespace App\Entity;
use App\Repository\FactPcieHistoriquePaiementRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FactPcieHistoriquePaiementRepository::class)
*/
class FactPcieHistoriquePaiement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float")
*/
private $montant;
/**
* @ORM\Column(type="datetime")
*/
private $createdat;
/**
* @ORM\ManyToOne(targetEntity=Typepaiement::class, inversedBy="factPcieHistoriquePaiements")
* @ORM\JoinColumn(nullable=false)
*/
private $typePaiement;
/**
* @ORM\ManyToOne(targetEntity=FacturePharmacie::class, inversedBy="factPcieHistoriquePaiements")
* @ORM\JoinColumn(nullable=false)
*/
private $facture;
public function getId(): ?int
{
return $this->id;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(float $montant): self
{
$this->montant = $montant;
return $this;
}
public function getCreatedat(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedat(\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function getTypePaiement(): ?Typepaiement
{
return $this->typePaiement;
}
public function setTypePaiement(?Typepaiement $typePaiement): self
{
$this->typePaiement = $typePaiement;
return $this;
}
public function getFacture(): ?FacturePharmacie
{
return $this->facture;
}
public function setFacture(?FacturePharmacie $facture): self
{
$this->facture = $facture;
return $this;
}
}