From d58e212549163912fac1f7a7d9c26d53831acf74 Mon Sep 17 00:00:00 2001 From: Cerys Date: Fri, 7 Jun 2024 00:15:10 +0100 Subject: [PATCH] added to the `SELECT` query --- src/QueryBuilder/QueryBuilders/SelectQuery.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/QueryBuilder/QueryBuilders/SelectQuery.php b/src/QueryBuilder/QueryBuilders/SelectQuery.php index 67337e8..e8b7b1e 100755 --- a/src/QueryBuilder/QueryBuilders/SelectQuery.php +++ b/src/QueryBuilder/QueryBuilders/SelectQuery.php @@ -43,9 +43,19 @@ final class SelectQuery $this->RelativePaths = $relativePaths; return $this; } + public function From(string $target): SelectQuery + { + $this->From = "" . $target; + return $this; + } public function Where(string $target, DeegraphEqualityOperator $operator, string $value): SelectQuery { $this->Where = "" . $target . " " . $operator->value . " " . $value; return $this; } + public function InstanceOf(string $target): SelectQuery + { + $this->InstanceOf = "" . $target; + return $this; + } } \ No newline at end of file