From 4c11aa3d57f7151e6e8394bf31f0f8105c371dd5 Mon Sep 17 00:00:00 2001
From: Lucas <levojem@gmail.com>
Date: Wed, 17 Jan 2024 14:26:38 +0100
Subject: [PATCH] attributs livraison

---
 Back_end/src/Entity/Livraison.php | 48 +++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/Back_end/src/Entity/Livraison.php b/Back_end/src/Entity/Livraison.php
index c099411..795b980 100644
--- a/Back_end/src/Entity/Livraison.php
+++ b/Back_end/src/Entity/Livraison.php
@@ -13,8 +13,56 @@ class Livraison
     #[ORM\Column]
     private ?int $id = null;
 
+    #[ORM\ManyToOne]
+    #[ORM\JoinColumn(nullable: false)]
+    private ?Abonnement $abonnement = null;
+
+    #[ORM\ManyToOne]
+    #[ORM\JoinColumn(nullable: false)]
+    private ?PointDeDepot $pointDeDepot = null;
+
+    #[ORM\ManyToOne]
+    #[ORM\JoinColumn(nullable: false)]
+    private ?Tournee $tournee = null;
+
     public function getId(): ?int
     {
         return $this->id;
     }
+
+    public function getAbonnement(): ?Abonnement
+    {
+        return $this->abonnement;
+    }
+
+    public function setAbonnement(?Abonnement $abonnement): static
+    {
+        $this->abonnement = $abonnement;
+
+        return $this;
+    }
+
+    public function getPointDeDepot(): ?PointDeDepot
+    {
+        return $this->pointDeDepot;
+    }
+
+    public function setPointDeDepot(?PointDeDepot $pointDeDepot): static
+    {
+        $this->pointDeDepot = $pointDeDepot;
+
+        return $this;
+    }
+
+    public function getTournee(): ?Tournee
+    {
+        return $this->tournee;
+    }
+
+    public function setTournee(?Tournee $tournee): static
+    {
+        $this->tournee = $tournee;
+
+        return $this;
+    }
 }
-- 
GitLab