<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ReductionRepository") */class Reduction{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\Commande", inversedBy="reduction") */ private $IdCmd; /** * @ORM\Column(type="decimal", precision=10, scale=3) */ private $Montant; /** * @ORM\Column(type="date") */ private $DateOperation; /** * @ORM\Column(type="string", length=255) */ private $Motif; /** * @ORM\Column(type="integer") */ private $IdAg; /** * @ORM\Column(type="string", length=3) */ private $flagCompassation; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $fichierBanque; public function __construct() { $this->DateOperation = new \DateTime(); $this->fichierBanque = null; } public function getId(): ?int { return $this->id; } public function getIdCmd(): ?Commande { return $this->IdCmd; } public function setIdCmd(?Commande $IdCmd): self { $this->IdCmd = $IdCmd; return $this; } public function getMontant(): ?string { return $this->Montant; } public function setMontant(string $Montant): self { $this->Montant = $Montant; return $this; } public function getDateOperation(): ?\DateTimeInterface { return $this->DateOperation; } public function setDateOperation(\DateTimeInterface $DateOperation): self { $this->DateOperation = $DateOperation; return $this; } public function getMotif(): ?string { return $this->Motif; } public function setMotif(string $Motif): self { $this->Motif = $Motif; return $this; } public function getIdAg(): ?int { return $this->IdAg; } public function setIdAg(int $IdAg): self { $this->IdAg = $IdAg; return $this; } public function getFlagCompassation(): ?string { return $this->flagCompassation; } public function setFlagCompassation(string $flagCompassation): self { $this->flagCompassation = $flagCompassation; return $this; } public function getFichierBanque(): ?string { return $this->fichierBanque; } public function setFichierBanque(?string $fichierBanque): self { $this->fichierBanque = $fichierBanque; return $this; }}