From 79f07caddea5c2f2b49d11afe47ed7e9b88dad74 Mon Sep 17 00:00:00 2001 From: "victor.soulier" Date: Fri, 17 Nov 2023 08:47:17 +0100 Subject: [PATCH] ADD : model Jeu --- project/src/model/metier/Jeu.php | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 project/src/model/metier/Jeu.php diff --git a/project/src/model/metier/Jeu.php b/project/src/model/metier/Jeu.php new file mode 100644 index 0000000..1d53068 --- /dev/null +++ b/project/src/model/metier/Jeu.php @@ -0,0 +1,51 @@ +id=$id; + $this->nom=$nom; + $this->nbParties=$nbParties; + } + + /** + * @return int + */ + public function getId(): int{ + return $this->id; + } + + /** + * @return string + */ + public function getNom(): string{ + return $this->nom; + } + + /** + * @return int + */ + public function getNbParties():int{ + return $this->nbParties; + } + + /** + * @return int + */ + public function incrementNbParties(): int{ + $this->nbParties += 1; + return $this->nbParties; + } +} \ No newline at end of file