<?phpnamespace App\Entity;use App\Repository\LigneEcritureRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: LigneEcritureRepository::class)]class LigneEcriture{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'lignes')] #[ORM\JoinColumn(nullable: false)] private ?EcritureComptable $ecritureComptable = null; #[ORM\ManyToOne(inversedBy: 'lignesDebit')] private ?CompteComptable $compteDebit = null; #[ORM\ManyToOne(inversedBy: 'lignesCredit')] private ?CompteComptable $compteCredit = null; #[ORM\Column] private ?float $montant = null; #[ORM\Column] private ?float $debit = 0; #[ORM\Column] private ?float $credit = 0; #[ORM\Column(length: 255, nullable: true)] private ?string $libelle = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $notes = null; #[ORM\ManyToOne] private ?Client $client = null; public function getId(): ?int { return $this->id; } public function getEcritureComptable(): ?EcritureComptable { return $this->ecritureComptable; } public function setEcritureComptable(?EcritureComptable $ecritureComptable): static { $this->ecritureComptable = $ecritureComptable; return $this; } public function getCompteDebit(): ?CompteComptable { return $this->compteDebit; } public function setCompteDebit(?CompteComptable $compteDebit): static { $this->compteDebit = $compteDebit; return $this; } public function getCompteCredit(): ?CompteComptable { return $this->compteCredit; } public function setCompteCredit(?CompteComptable $compteCredit): static { $this->compteCredit = $compteCredit; return $this; } public function getMontant(): ?float { return $this->montant; } public function setMontant(float $montant): static { $this->montant = $montant; return $this; } public function getDebit(): ?float { return $this->debit; } public function setDebit(float $debit): static { $this->debit = $debit; return $this; } public function getCredit(): ?float { return $this->credit; } public function setCredit(float $credit): static { $this->credit = $credit; return $this; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(?string $libelle): static { $this->libelle = $libelle; return $this; } public function getNotes(): ?string { return $this->notes; } public function setNotes(?string $notes): static { $this->notes = $notes; return $this; } public function getClient(): ?Client { return $this->client; } public function setClient(?Client $client): static { $this->client = $client; return $this; }}