From 939aaf0de079b9f1d1f7caec1081a7d355ecfcff Mon Sep 17 00:00:00 2001 From: Cerys Date: Thu, 6 Jun 2024 00:27:05 +0100 Subject: [PATCH] added `SelectQuery` to `RunQuery()` --- src/Core/DeegraphServer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Core/DeegraphServer.php b/src/Core/DeegraphServer.php index fc8cada..8c32df8 100644 --- a/src/Core/DeegraphServer.php +++ b/src/Core/DeegraphServer.php @@ -5,6 +5,7 @@ namespace Darksparrow\DeegraphPHP\Core; use Darksparrow\DeegraphPHP\DataStructures\ServerInfo; use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\InsertQuery; use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\PutQuery; +use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\SelectQuery; class DeegraphServer { @@ -67,10 +68,10 @@ class DeegraphServer } /** - * @param PutQuery|InsertQuery $query Takes in a Query Builder object. + * @param InsertQuery|PutQuery|SelectQuery $query Takes in a Query Builder object. * @return void */ - public function RunQuery(PutQuery|InsertQuery $query): void + public function RunQuery(InsertQuery|PutQuery|SelectQuery $query): void { echo $query; echo "


";