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