<?php
namespace App\Entity;
use App\Repository\PaiementReceptionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PaiementReceptionRepository::class)
*/
class PaiementReception
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=TmpReception::class)
* @ORM\JoinColumn(nullable=false)
*/
private $tmpReception;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
*/
private $montantPaye;
/**
* @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
*/
private $prixFixe;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="string", length=50)
*/
private $modePaiement; // Cash, Banque, Mobile Money...
/**
* @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="paiements")
*/
private $IdAg;
public function __construct()
{
$this->createdAt = new \DateTime();
}
public function getId(): ?int { return $this->id; }
public function getTmpReception(): ?TmpReception { return $this->tmpReception; }
public function setTmpReception(?TmpReception $tmpReception): self { $this->tmpReception = $tmpReception; return $this; }
public function getMontantPaye(): ?string { return $this->montantPaye; }
public function setMontantPaye(string $montantPaye): self { $this->montantPaye = $montantPaye; return $this; }
public function getPrixFixe(): ?string { return $this->prixFixe; }
public function setPrixFixe(?string $prixFixe): self { $this->prixFixe = $prixFixe; return $this; }
public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; }
public function getModePaiement(): ?string { return $this->modePaiement; }
public function setModePaiement(string $modePaiement): self { $this->modePaiement = $modePaiement; return $this; }
public function getIdAg(): ?Utilisateur { return $this->IdAg; }
public function setIdAg(?Utilisateur $IdAg): self { $this->IdAg = $IdAg; return $this; }
}