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