From a9054e8645488ac98701846e2e106d32979e3b7e Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Wed, 20 Dec 2023 14:44:44 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20squelettes=20des=20m=C3=A9thodes?= =?UTF-8?q?=20manquantes=20(en=20comparaison=20avec=20le=20diag=20de=20cla?= =?UTF-8?q?sses)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/src/model/gateways/InviteGateway.php | 4 ++++ project/src/model/gateways/ScientifiqueGateway.php | 8 ++++++++ project/src/model/gateways/SexeGateway.php | 4 ++++ project/src/model/gateways/ThematiqueGateway.php | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/project/src/model/gateways/InviteGateway.php b/project/src/model/gateways/InviteGateway.php index d0ddc0c..af67014 100755 --- a/project/src/model/gateways/InviteGateway.php +++ b/project/src/model/gateways/InviteGateway.php @@ -61,4 +61,8 @@ class InviteGateway extends JoueurGateway return $id; } } + + public function supprimerInvite(int $id) : bool { + + } } \ No newline at end of file diff --git a/project/src/model/gateways/ScientifiqueGateway.php b/project/src/model/gateways/ScientifiqueGateway.php index 7b54e1d..c2cd33a 100755 --- a/project/src/model/gateways/ScientifiqueGateway.php +++ b/project/src/model/gateways/ScientifiqueGateway.php @@ -12,6 +12,10 @@ class ScientifiqueGateway $this->con = $con; } + public function getFromId(int $id) : array { + + } + // public function getRandom(): array|bool{ <- autorisé seulement en PHP 8 // $this->con->executeQuery( // "SELECT id, nom, prenom, photo, dateNaissance, descriptif, ratiotrouvee, idthematique, iddifficulte, index FROM Scientifique ORDER BY RANDOM() LIMIT 1;"); @@ -29,6 +33,10 @@ class ScientifiqueGateway return $this->con->getOneResult(); } + public function getRandomFromDifficulte(Difficulte $difficulte) : array { + + } + /** * @throws Exception */ diff --git a/project/src/model/gateways/SexeGateway.php b/project/src/model/gateways/SexeGateway.php index 6902a5f..0310dab 100755 --- a/project/src/model/gateways/SexeGateway.php +++ b/project/src/model/gateways/SexeGateway.php @@ -22,4 +22,8 @@ class SexeGateway $this->con->executeQuery("SELECT id, libelle FROM Sexe;"); return $this->con->getResults(); } + + public function getFromScientifique(int $idScientifique) : array { + + } } \ No newline at end of file diff --git a/project/src/model/gateways/ThematiqueGateway.php b/project/src/model/gateways/ThematiqueGateway.php index 5220c69..861983f 100755 --- a/project/src/model/gateways/ThematiqueGateway.php +++ b/project/src/model/gateways/ThematiqueGateway.php @@ -21,4 +21,8 @@ class ThematiqueGateway $this->con->executeQuery("SELECT id, libelle FROM Thematique;"); return $this->con->getResults(); } + + public function getFromScientifique(int $idScientifique) : array { + + } } \ No newline at end of file