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.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getAmount(): ?float
  32.     {
  33.         return $this->amount;
  34.     }
  35.     public function setAmount(float $amount): static
  36.     {
  37.         $this->amount $amount;
  38.         return $this;
  39.     }
  40.     public function getDate(): ?\DateTimeInterface
  41.     {
  42.         return $this->date;
  43.     }
  44.     public function setDate(\DateTimeInterface $date): static
  45.     {
  46.         $this->date $date;
  47.         return $this;
  48.     }
  49.     public function isIsPaid(): ?bool
  50.     {
  51.         return $this->isPaid;
  52.     }
  53.     public function setIsPaid(bool $isPaid): static
  54.     {
  55.         $this->isPaid $isPaid;
  56.         return $this;
  57.     }
  58.     public function getClient(): ?Client
  59.     {
  60.         return $this->client;
  61.     }
  62.     public function setClient(?Client $client): static
  63.     {
  64.         $this->client $client;
  65.         return $this;
  66.     }
  67.     public function getVente(): ?Vente
  68.     {
  69.         return $this->vente;
  70.     }
  71.     public function setVente(?Vente $vente): static
  72.     {
  73.         $this->vente $vente;
  74.         return $this;
  75.     }
  76.     public function getLivraison(): ?Livraison
  77.     {
  78.         return $this->livraison;
  79.     }
  80.     public function setLivraison(?Livraison $livraison): static
  81.     {
  82.         $this->livraison $livraison;
  83.         return $this;
  84.     }
  85.     public function getFacture(): ?Facture
  86.     {
  87.         return $this->facture;
  88.     }
  89.     public function setFacture(?Facture $facture): static
  90.     {
  91.         $this->facture $facture;
  92.         return $this;
  93.     }
  94. }