<?phpnamespace App\Entity;use App\Repository\EcheanceRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EcheanceRepository::class)]class Echeance{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column] private ?float $amount = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $date = null; #[ORM\Column] private ?bool $isPaid = null; #[ORM\ManyToOne(inversedBy: 'echeances')] private ?Client $client = null; #[ORM\ManyToOne(inversedBy: 'echeances')] private ?Vente $vente = null; #[ORM\ManyToOne(inversedBy: 'echeances')] private ?Livraison $livraison = null; #[ORM\ManyToOne(inversedBy: 'echeance')] private ?Facture $facture = null; public function getId(): ?int { return $this->id; } public function getAmount(): ?float { return $this->amount; } public function setAmount(float $amount): static { $this->amount = $amount; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): static { $this->date = $date; return $this; } public function isIsPaid(): ?bool { return $this->isPaid; } public function setIsPaid(bool $isPaid): static { $this->isPaid = $isPaid; return $this; } public function getClient(): ?Client { return $this->client; } public function setClient(?Client $client): static { $this->client = $client; return $this; } public function getVente(): ?Vente { return $this->vente; } public function setVente(?Vente $vente): static { $this->vente = $vente; return $this; } public function getLivraison(): ?Livraison { return $this->livraison; } public function setLivraison(?Livraison $livraison): static { $this->livraison = $livraison; return $this; } public function getFacture(): ?Facture { return $this->facture; } public function setFacture(?Facture $facture): static { $this->facture = $facture; return $this; }}