From 32e224f11879438851adb62ebb42ea9941a82425 Mon Sep 17 00:00:00 2001 From: Kevin MONDEJAR Date: Wed, 23 Oct 2024 15:13:37 +0200 Subject: [PATCH] Supprimer 'gateway/Connection.php' --- gateway/Connection.php | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 gateway/Connection.php diff --git a/gateway/Connection.php b/gateway/Connection.php deleted file mode 100644 index d46fbd7..0000000 --- a/gateway/Connection.php +++ /dev/null @@ -1,32 +0,0 @@ -setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); -} - - -/** * @param string $query - * @param array $parameters * - * @return bool Returns `true` on success, `false` otherwise -*/ - -public function executeQuery(string $query, array $parameters = []) : bool{ - $this->stmt = parent::prepare($query); - foreach ($parameters as $name => $value) { - $this->stmt->bindValue($name, $value[0], $value[1]); - } - - return $this->stmt->execute(); -} - -public function getResults() : array { - return $this->stmt->fetchall(); - -} -} - -?>