diff --git a/Back_end/src/Entity/Livraison.php b/Back_end/src/Entity/Livraison.php index c09941158b2a2def4113d14d3537fad93a55bb13..795b98090ace41e680cfede4581469537dc38b0c 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; + } }