From 3a19be7118d9906fc174962d9d3daf6319c784e8 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sat, 13 Oct 2018 09:20:59 -0500 Subject: [PATCH] Remove fetch-type parameter --- src/ResultSet.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ResultSet.php b/src/ResultSet.php index 2669279..cebe12a 100644 --- a/src/ResultSet.php +++ b/src/ResultSet.php @@ -6,14 +6,10 @@ use Amp\Iterator; interface ResultSet extends Iterator { - const FETCH_ARRAY = 0; - const FETCH_ASSOC = 1; - const FETCH_OBJECT = 2; - /** * {@inheritdoc} * - * @param int $type Next row fetch type. Use the FETCH_* constants provided by this interface. + * @return array Map of row names to values. */ - public function getCurrent(int $type = self::FETCH_ASSOC); + public function getCurrent(): array; }