<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass="App\Repository\PaiementRepository") */class Paiement{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\Commande", inversedBy="paiements") * @ORM\JoinColumn(nullable=false) */ private $IdCmd; /** * @ORM\Column(type="decimal", precision=10, scale=3) */ private $Montant; /** * @ORM\Column(type="date") */ private $DateOperation; /** * @ORM\Column(type="boolean") */ private $flagEnAvance; /** * @Assert\File(mimeTypes={ "application/pdf", "image/jpeg" }) */ private $fichierBanque; /** * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="paiements") */ private $IdAg; public function __construct() { //$this->DateOperation = new \DateTime(); $this->flagEnAvance = false; } 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 getFlagEnAvance(): ?bool { return $this->flagEnAvance; } public function setFlagEnAvance(bool $flagEnAvance): self { $this->flagEnAvance = $flagEnAvance; return $this; } /** * @return mixed */ public function getFichierBanque() { return $this->fichierBanque; } /** * @param mixed $fichierBanque */ public function setFichierBanque($fichierBanque) { $this->fichierBanque = $fichierBanque; } public function getIdAg(): ?Utilisateur { return $this->IdAg; } public function setIdAg(?Utilisateur $user): self { $this->IdAg = $user; return $this; }}