<?phpnamespace App\Entity;use App\Repository\RetraitDetteRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RetraitDetteRepository::class)]class RetraitDette{ #[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 $montantRetire = null; #[ORM\Column] private ?float $montantRestantAvant = null; #[ORM\Column] private ?float $montantRestantApres = null; #[ORM\Column(length: 255)] private ?string $motifRetrait = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $dateRetrait = 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 $typeRetrait = null; #[ORM\ManyToOne(targetEntity: User::class)] #[ORM\JoinColumn(nullable: false)] private ?User $utilisateur = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $createdAt = null; public function __construct() { $this->dateRetrait = 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 getMontantRetire(): ?float { return $this->montantRetire; } public function setMontantRetire(float $montantRetire): static { $this->montantRetire = $montantRetire; 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 getMotifRetrait(): ?string { return $this->motifRetrait; } public function setMotifRetrait(string $motifRetrait): static { $this->motifRetrait = $motifRetrait; return $this; } public function getDateRetrait(): ?\DateTimeInterface { return $this->dateRetrait; } public function setDateRetrait(\DateTimeInterface $dateRetrait): static { $this->dateRetrait = $dateRetrait; 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 getTypeRetrait(): ?string { return $this->typeRetrait; } public function setTypeRetrait(?string $typeRetrait): static { $this->typeRetrait = $typeRetrait; 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; }}