src/Entity/Paiement.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\PaiementRepository")
  7.  */
  8. class Paiement
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity="App\Entity\Commande", inversedBy="paiements")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $IdCmd;
  21.     /**
  22.      * @ORM\Column(type="decimal", precision=10, scale=3)
  23.      */
  24.     private $Montant;
  25.     /**
  26.      * @ORM\Column(type="date")
  27.      */
  28.     private $DateOperation;
  29.     /**
  30.      * @ORM\Column(type="boolean")
  31.      */
  32.     private $flagEnAvance;
  33.     /**
  34.      * @Assert\File(mimeTypes={ "application/pdf", "image/jpeg" })
  35.      */
  36.     private $fichierBanque;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="paiements")
  39.      */
  40.     private $IdAg;
  41.     public function __construct()
  42.     {
  43.         //$this->DateOperation = new \DateTime();
  44.         $this->flagEnAvance = false;
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getIdCmd(): ?Commande
  51.     {
  52.         return $this->IdCmd;
  53.     }
  54.     public function setIdCmd(?Commande $IdCmd): self
  55.     {
  56.         $this->IdCmd = $IdCmd;
  57.         return $this;
  58.     }
  59.     public function getMontant(): ?string
  60.     {
  61.         return $this->Montant;
  62.     }
  63.     public function setMontant(string $Montant): self
  64.     {
  65.         $this->Montant = $Montant;
  66.         return $this;
  67.     }
  68.     public function getDateOperation(): ?\DateTimeInterface
  69.     {
  70.         return $this->DateOperation;
  71.     }
  72.     public function setDateOperation(\DateTimeInterface $DateOperation): self
  73.     {
  74.         $this->DateOperation = $DateOperation;
  75.         return $this;
  76.     }
  77.     public function getFlagEnAvance(): ?bool
  78.     {
  79.         return $this->flagEnAvance;
  80.     }
  81.     public function setFlagEnAvance(bool $flagEnAvance): self
  82.     {
  83.         $this->flagEnAvance = $flagEnAvance;
  84.         return $this;
  85.     }
  86.     /**
  87.      * @return mixed
  88.      */
  89.     public function getFichierBanque()
  90.     {
  91.         return $this->fichierBanque;
  92.     }
  93.     /**
  94.      * @param mixed $fichierBanque
  95.      */
  96.     public function setFichierBanque($fichierBanque)
  97.     {
  98.         $this->fichierBanque = $fichierBanque;
  99.     }
  100.     public function getIdAg(): ?Utilisateur
  101.     {
  102.         return $this->IdAg;
  103.     }
  104.     public function setIdAg(?Utilisateur $user): self
  105.     {
  106.         $this->IdAg = $user;
  107.         return $this;
  108.     }
  109. }