diff --git a/src/QueryBuilder/DirectoryQuery/DirectoryQuery.php b/src/QueryBuilder/DirectoryQuery/DirectoryQuery.php index 5c1d489..4f20190 100644 --- a/src/QueryBuilder/DirectoryQuery/DirectoryQuery.php +++ b/src/QueryBuilder/DirectoryQuery/DirectoryQuery.php @@ -12,6 +12,10 @@ final class DirectoryQuery { $this->QueryString = $queryString; } + public function __toString() + { + return $this->QueryString; + } public function RunQuery(DeegraphServer $server): DirectoryQueryResponse { diff --git a/src/QueryBuilder/InsertQuery/InsertQuery.php b/src/QueryBuilder/InsertQuery/InsertQuery.php index 1f29b65..35bbaea 100644 --- a/src/QueryBuilder/InsertQuery/InsertQuery.php +++ b/src/QueryBuilder/InsertQuery/InsertQuery.php @@ -23,4 +23,8 @@ final class InsertQuery if($queryBuilder->Replace) $builder .= "REPLACE"; } + public function __toString() + { + return $this->QueryString; + } } diff --git a/src/QueryBuilder/ReferencesQuery/ReferencesQuery.php b/src/QueryBuilder/ReferencesQuery/ReferencesQuery.php index 11c44b7..07f8ad6 100644 --- a/src/QueryBuilder/ReferencesQuery/ReferencesQuery.php +++ b/src/QueryBuilder/ReferencesQuery/ReferencesQuery.php @@ -12,6 +12,10 @@ final class ReferencesQuery { $this->QueryString = $queryString; } + public function __toString() + { + return $this->QueryString; + } public function RunQuery(DeegraphServer $server): ReferencesQueryResponse {