con = $con; } public static function getGames() : array { // TODO: implĂ©menter requĂȘte SQL return array( 0 => ["Qui-est-ce ?", "Le qui est-ce...."], 1 => ["Kahoot", "Le Kahoot permet..."] ); } public function getGameByCode(int $code) : array { $query = 'SELECT * FROM Partie WHERE codeInvitation=:id'; $this->con->executeQuery($query,array( ':id' => [$code, PDO::PARAM_INT] )); return $this->con->getResults(); } }