Skip to content

Commit

Permalink
Refactor connection handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Sep 10, 2019
1 parent a365673 commit 04543ab
Show file tree
Hide file tree
Showing 17 changed files with 492 additions and 594 deletions.
7 changes: 0 additions & 7 deletions src/ConnectException.php

This file was deleted.

233 changes: 0 additions & 233 deletions src/Connection.php

This file was deleted.

11 changes: 11 additions & 0 deletions src/QueryExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,16 @@

interface QueryExecutor
{
/**
* @param string[] $query
* @param callable|null $responseTransform
*
* @return Promise
*
* @see toBool()
* @see toNull()
* @see toFloat()
* @see toMap()
*/
public function execute(array $query, callable $responseTransform = null): Promise;
}
3 changes: 3 additions & 0 deletions src/QueryExecutorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

interface QueryExecutorFactory
{
/**
* @return QueryExecutor New QueryExecutor instance.
*/
public function createQueryExecutor(): QueryExecutor;
}
Loading

0 comments on commit 04543ab

Please sign in to comment.