<?phpnamespace App\Entity;use App\Repository\PaiementDetteRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PaiementDetteRepository::class)]class PaiementDette{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(targetEntity: Client::class)] #[ORM\JoinColumn(nullable: true)] private ?Client $client = null; #[ORM\Column] private ?float $montantPaye = null; #[ORM\Column] private ?float $montantRestantAvant = null; #[ORM\Column] private ?float $montantRestantApres = null; #[ORM\Column(length: 255)] private ?string $modePaiement = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $datePaiement = null; #[ORM\Column(type: 'text', nullable: true)] private ?string $commentaire = null; #[ORM\Column(length: 255, nullable: true)] private ?string $numeroFacture = null; #[ORM\Column(length: 255, nullable: true)] private ?string $typePaiement = null; #[ORM\ManyToOne(targetEntity: User::class)] #[ORM\JoinColumn(nullable: false)] private ?User $utilisateur = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $createdAt = null; #[ORM\ManyToOne(targetEntity: Boutique::class)] private ?Boutique $boutique = null; public function __construct() { $this->datePaiement = new \DateTime(); $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getClient(): ?Client { return $this->client; } public function setClient(?Client $client): static { $this->client = $client; return $this; } public function getMontantPaye(): ?float { return $this->montantPaye; } public function setMontantPaye(float $montantPaye): static { $this->montantPaye = $montantPaye; return $this; } public function getMontantRestantAvant(): ?float { return $this->montantRestantAvant; } public function setMontantRestantAvant(float $montantRestantAvant): static { $this->montantRestantAvant = $montantRestantAvant; return $this; } public function getMontantRestantApres(): ?float { return $this->montantRestantApres; } public function setMontantRestantApres(float $montantRestantApres): static { $this->montantRestantApres = $montantRestantApres; return $this; } public function getModePaiement(): ?string { return $this->modePaiement; } public function setModePaiement(string $modePaiement): static { $this->modePaiement = $modePaiement; return $this; } public function getDatePaiement(): ?\DateTimeInterface { return $this->datePaiement; } public function setDatePaiement(\DateTimeInterface $datePaiement): static { $this->datePaiement = $datePaiement; return $this; } public function getCommentaire(): ?string { return $this->commentaire; } public function setCommentaire(?string $commentaire): static { $this->commentaire = $commentaire; return $this; } public function getNumeroFacture(): ?string { return $this->numeroFacture; } public function setNumeroFacture(?string $numeroFacture): static { $this->numeroFacture = $numeroFacture; return $this; } public function getTypePaiement(): ?string { return $this->typePaiement; } public function setTypePaiement(?string $typePaiement): static { $this->typePaiement = $typePaiement; return $this; } public function getUtilisateur(): ?User { return $this->utilisateur; } public function setUtilisateur(?User $utilisateur): static { $this->utilisateur = $utilisateur; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getBoutique(): ?Boutique { return $this->boutique; } public function setBoutique(?Boutique $boutique): static { $this->boutique = $boutique; return $this; }}