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="string", length=3)
  34.      */
  35.     private $flagCompassation;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $fichierBanque;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Agent::class, inversedBy="reductions")
  42.      * @ORM\JoinColumn(nullable=false)
  43.      */
  44.     private $IdAg;
  45.     public function __construct()
  46.     {
  47.         $this->DateOperation = new \DateTime();
  48.         $this->fichierBanque = null;
  49.     }
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getIdCmd(): ?Commande
  55.     {
  56.         return $this->IdCmd;
  57.     }
  58.     public function setIdCmd(?Commande $IdCmd): self
  59.     {
  60.         $this->IdCmd = $IdCmd;
  61.         return $this;
  62.     }
  63.     public function getMontant(): ?string
  64.     {
  65.         return $this->Montant;
  66.     }
  67.     public function setMontant(string $Montant): self
  68.     {
  69.         $this->Montant = $Montant;
  70.         return $this;
  71.     }
  72.     public function getDateOperation(): ?\DateTimeInterface
  73.     {
  74.         return $this->DateOperation;
  75.     }
  76.     public function setDateOperation(\DateTimeInterface $DateOperation): self
  77.     {
  78.         $this->DateOperation = $DateOperation;
  79.         return $this;
  80.     }
  81.     public function getMotif(): ?string
  82.     {
  83.         return $this->Motif;
  84.     }
  85.     public function setMotif(string $Motif): self
  86.     {
  87.         $this->Motif = $Motif;
  88.         return $this;
  89.     }
  90.     public function getFlagCompassation(): ?string
  91.     {
  92.         return $this->flagCompassation;
  93.     }
  94.     public function setFlagCompassation(string $flagCompassation): self
  95.     {
  96.         $this->flagCompassation = $flagCompassation;
  97.         return $this;
  98.     }
  99.     public function getFichierBanque(): ?string
  100.     {
  101.         return $this->fichierBanque;
  102.     }
  103.     public function setFichierBanque(?string $fichierBanque): self
  104.     {
  105.         $this->fichierBanque = $fichierBanque;
  106.         return $this;
  107.     }
  108.     public function getIdAg(): ?Agent
  109.     {
  110.         return $this->IdAg;
  111.     }
  112.     public function setIdAg(?Agent $IdAg): self
  113.     {
  114.         $this->IdAg = $IdAg;
  115.         return $this;
  116.     }
  117. }