src/Entity/LigneEcriture.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LigneEcritureRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLigneEcritureRepository::class)]
  7. class LigneEcriture
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'lignes')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?EcritureComptable $ecritureComptable null;
  16.     #[ORM\ManyToOne(inversedBy'lignesDebit')]
  17.     private ?CompteComptable $compteDebit null;
  18.     #[ORM\ManyToOne(inversedBy'lignesCredit')]
  19.     private ?CompteComptable $compteCredit null;
  20.     #[ORM\Column]
  21.     private ?float $montant null;
  22.     #[ORM\Column]
  23.     private ?float $debit 0;
  24.     #[ORM\Column]
  25.     private ?float $credit 0;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $libelle null;
  28.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  29.     private ?string $notes null;
  30.     #[ORM\ManyToOne]
  31.     private ?Client $client null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getEcritureComptable(): ?EcritureComptable
  37.     {
  38.         return $this->ecritureComptable;
  39.     }
  40.     public function setEcritureComptable(?EcritureComptable $ecritureComptable): static
  41.     {
  42.         $this->ecritureComptable $ecritureComptable;
  43.         return $this;
  44.     }
  45.     public function getCompteDebit(): ?CompteComptable
  46.     {
  47.         return $this->compteDebit;
  48.     }
  49.     public function setCompteDebit(?CompteComptable $compteDebit): static
  50.     {
  51.         $this->compteDebit $compteDebit;
  52.         return $this;
  53.     }
  54.     public function getCompteCredit(): ?CompteComptable
  55.     {
  56.         return $this->compteCredit;
  57.     }
  58.     public function setCompteCredit(?CompteComptable $compteCredit): static
  59.     {
  60.         $this->compteCredit $compteCredit;
  61.         return $this;
  62.     }
  63.     public function getMontant(): ?float
  64.     {
  65.         return $this->montant;
  66.     }
  67.     public function setMontant(float $montant): static
  68.     {
  69.         $this->montant $montant;
  70.         return $this;
  71.     }
  72.     public function getDebit(): ?float
  73.     {
  74.         return $this->debit;
  75.     }
  76.     public function setDebit(float $debit): static
  77.     {
  78.         $this->debit $debit;
  79.         return $this;
  80.     }
  81.     public function getCredit(): ?float
  82.     {
  83.         return $this->credit;
  84.     }
  85.     public function setCredit(float $credit): static
  86.     {
  87.         $this->credit $credit;
  88.         return $this;
  89.     }
  90.     public function getLibelle(): ?string
  91.     {
  92.         return $this->libelle;
  93.     }
  94.     public function setLibelle(?string $libelle): static
  95.     {
  96.         $this->libelle $libelle;
  97.         return $this;
  98.     }
  99.     public function getNotes(): ?string
  100.     {
  101.         return $this->notes;
  102.     }
  103.     public function setNotes(?string $notes): static
  104.     {
  105.         $this->notes $notes;
  106.         return $this;
  107.     }
  108.     public function getClient(): ?Client
  109.     {
  110.         return $this->client;
  111.     }
  112.     public function setClient(?Client $client): static
  113.     {
  114.         $this->client $client;
  115.         return $this;
  116.     }
  117. }