src/Entity/Reduction.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ReductionRepository")
  7.  */
  8. class Reduction
  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="reduction")
  18.      */
  19.     private $IdCmd;
  20.     /**
  21.      * @ORM\Column(type="decimal", precision=10, scale=3)
  22.      */
  23.     private $Montant;
  24.     /**
  25.      * @ORM\Column(type="date")
  26.      */
  27.     private $DateOperation;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $Motif;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     private $IdAg;
  36.     /**
  37.      * @ORM\Column(type="string", length=3)
  38.      */
  39.     private $flagCompassation;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $fichierBanque;
  44.     public function __construct()
  45.     {
  46.         $this->DateOperation = new \DateTime();
  47.         $this->fichierBanque null;
  48.     }
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getIdCmd(): ?Commande
  54.     {
  55.         return $this->IdCmd;
  56.     }
  57.     public function setIdCmd(?Commande $IdCmd): self
  58.     {
  59.         $this->IdCmd $IdCmd;
  60.         return $this;
  61.     }
  62.     public function getMontant(): ?string
  63.     {
  64.         return $this->Montant;
  65.     }
  66.     public function setMontant(string $Montant): self
  67.     {
  68.         $this->Montant $Montant;
  69.         return $this;
  70.     }
  71.     public function getDateOperation(): ?\DateTimeInterface
  72.     {
  73.         return $this->DateOperation;
  74.     }
  75.     public function setDateOperation(\DateTimeInterface $DateOperation): self
  76.     {
  77.         $this->DateOperation $DateOperation;
  78.         return $this;
  79.     }
  80.     public function getMotif(): ?string
  81.     {
  82.         return $this->Motif;
  83.     }
  84.     public function setMotif(string $Motif): self
  85.     {
  86.         $this->Motif $Motif;
  87.         return $this;
  88.     }
  89.     public function getIdAg(): ?int
  90.     {
  91.         return $this->IdAg;
  92.     }
  93.     public function setIdAg(int $IdAg): self
  94.     {
  95.         $this->IdAg $IdAg;
  96.         return $this;
  97.     }
  98.     public function getFlagCompassation(): ?string
  99.     {
  100.         return $this->flagCompassation;
  101.     }
  102.     public function setFlagCompassation(string $flagCompassation): self
  103.     {
  104.         $this->flagCompassation $flagCompassation;
  105.         return $this;
  106.     }
  107.     public function getFichierBanque(): ?string
  108.     {
  109.         return $this->fichierBanque;
  110.     }
  111.     public function setFichierBanque(?string $fichierBanque): self
  112.     {
  113.         $this->fichierBanque $fichierBanque;
  114.         return $this;
  115.     }
  116. }