Skip to content

Commit 3d97d90

Browse files
authored
Merge pull request #169 from sshilko/patch-1
Implement `setType` method to allow specifying query type.
2 parents 51be472 + cc0104c commit 3d97d90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/SphinxQL.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ public function __construct(ConnectionInterface $connection = null)
223223
{
224224
$this->connection = $connection;
225225
}
226+
227+
/**
228+
* Sets Query Type
229+
*
230+
*/
231+
public function setType(string $type)
232+
{
233+
return $this->type = $type;
234+
}
226235

227236
/**
228237
* Returns the currently attached connection

0 commit comments

Comments
 (0)