src/Entity/Echeance.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EcheanceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEcheanceRepository::class)]
  7. class Echeance
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?float $amount null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $date null;
  17.     #[ORM\Column]
  18.     private ?bool $isPaid null;
  19.     #[ORM\ManyToOne(inversedBy'echeances')]
  20.     private ?Client $client null;
  21.     #[ORM\ManyToOne(inversedBy'echeances')]
  22.     private ?Vente $vente null;
  23.     #[ORM\ManyToOne(inversedBy'echeances')]
  24.     private ?Livraison $livraison null;
  25.     #[ORM\ManyToOne(inversedBy'echeance')]
  26.     private ?Facture $facture null;
  27.     #[ORM\Column(type'string'length20options: ['default' => 'paiement'])]
  28.     private ?string $type 'paiement';
  29.     #[ORM\Column(type'boolean'options: ['default' => false])]
  30.     private ?bool $comptabilise false;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getAmount(): ?float
  36.     {
  37.         return $this->amount;
  38.     }
  39.     public function setAmount(float $amount): static
  40.     {
  41.         $this->amount $amount;
  42.         return $this;
  43.     }
  44.     public function getDate(): ?\DateTimeInterface
  45.     {
  46.         return $this->date;
  47.     }
  48.     public function setDate(\DateTimeInterface $date): static
  49.     {
  50.         $this->date $date;
  51.         return $this;
  52.     }
  53.     public function isIsPaid(): ?bool
  54.     {
  55.         return $this->isPaid;
  56.     }
  57.     public function setIsPaid(bool $isPaid): static
  58.     {
  59.         $this->isPaid $isPaid;
  60.         return $this;
  61.     }
  62.     public function getClient(): ?Client
  63.     {
  64.         return $this->client;
  65.     }
  66.     public function setClient(?Client $client): static
  67.     {
  68.         $this->client $client;
  69.         return $this;
  70.     }
  71.     public function getVente(): ?Vente
  72.     {
  73.         return $this->vente;
  74.     }
  75.     public function setVente(?Vente $vente): static
  76.     {
  77.         $this->vente $vente;
  78.         return $this;
  79.     }
  80.     public function getLivraison(): ?Livraison
  81.     {
  82.         return $this->livraison;
  83.     }
  84.     public function setLivraison(?Livraison $livraison): static
  85.     {
  86.         $this->livraison $livraison;
  87.         return $this;
  88.     }
  89.     public function getFacture(): ?Facture
  90.     {
  91.         return $this->facture;
  92.     }
  93.     public function setFacture(?Facture $facture): static
  94.     {
  95.         $this->facture $facture;
  96.         return $this;
  97.     }
  98.     public function getType(): ?string
  99.     {
  100.         return $this->type;
  101.     }
  102.     public function setType(string $type): static
  103.     {
  104.         $this->type $type;
  105.         return $this;
  106.     }
  107.     public function isComptabilise(): ?bool
  108.     {
  109.         return $this->comptabilise;
  110.     }
  111.     public function setComptabilise(bool $comptabilise): static
  112.     {
  113.         $this->comptabilise $comptabilise;
  114.         return $this;
  115.     }
  116. }