src/Entity/PaiementReception.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaiementReceptionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PaiementReceptionRepository::class)
  7.  */
  8. class PaiementReception
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=TmpReception::class)
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $tmpReception;
  21.     /**
  22.      * @ORM\Column(type="decimal", precision=10, scale=2)
  23.      */
  24.     private $montantPaye;
  25.     /**
  26.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  27.      */
  28.     private $prixFixe;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $createdAt;
  33.     /**
  34.      * @ORM\Column(type="string", length=50)
  35.      */
  36.     private $modePaiement; // Cash, Banque, Mobile Money...
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="paiements")
  39.      */
  40.     private $IdAg;
  41.     public function __construct()
  42.     {
  43.         $this->createdAt = new \DateTime();
  44.     }
  45.     public function getId(): ?int { return $this->id; }
  46.     public function getTmpReception(): ?TmpReception { return $this->tmpReception; }
  47.     public function setTmpReception(?TmpReception $tmpReception): self { $this->tmpReception = $tmpReception; return $this; }
  48.     public function getMontantPaye(): ?string { return $this->montantPaye; }
  49.     public function setMontantPaye(string $montantPaye): self { $this->montantPaye = $montantPaye; return $this; }
  50.     public function getPrixFixe(): ?string { return $this->prixFixe; }
  51.     public function setPrixFixe(?string $prixFixe): self { $this->prixFixe = $prixFixe; return $this; }
  52.     public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; }
  53.     public function getModePaiement(): ?string { return $this->modePaiement; }
  54.     public function setModePaiement(string $modePaiement): self { $this->modePaiement = $modePaiement; return $this; }
  55.     public function getIdAg(): ?Utilisateur { return $this->IdAg; }
  56.     public function setIdAg(?Utilisateur $IdAg): self { $this->IdAg = $IdAg; return $this; }
  57. }