Change Result to extend only Traversable

This commit is contained in:
Aaron Piotrowski 2021-10-24 22:25:21 -05:00
parent 4f5f3e6d92
commit 50389ebefd
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
2 changed files with 2 additions and 13 deletions

View File

@ -12,8 +12,7 @@
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": ">=8", "php": ">=8",
"amphp/amp": "^3-dev", "amphp/amp": "^3-dev"
"amphp/pipeline": "dev-master"
}, },
"require-dev": { "require-dev": {
"amphp/php-cs-fixer-config": "dev-master", "amphp/php-cs-fixer-config": "dev-master",

View File

@ -2,18 +2,8 @@
namespace Amp\Sql; namespace Amp\Sql;
use Amp\Pipeline\Pipeline; interface Result extends \Traversable
interface Result extends Pipeline
{ {
/**
* Promise returned resolves with a map (associative array) of column-names to column-values for each row in the
* result set. The promise resolves with null when no more rows remain.
*
* @return array<string, mixed>|null
*/
public function continue(): ?array;
/** /**
* Resolves with a new instance of Result if another result is available after this result. Resolves with null if * Resolves with a new instance of Result if another result is available after this result. Resolves with null if
* no further results are available. * no further results are available.