Remove fetch-type parameter

This commit is contained in:
Aaron Piotrowski 2018-10-13 09:20:59 -05:00
parent 5c65ef09c4
commit 3a19be7118
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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;
}