From 230b0813cdc5c7c1079271dd87550f4e52dece5a Mon Sep 17 00:00:00 2001 From: Tomas Jacik Date: Wed, 18 Jan 2017 16:35:41 +0100 Subject: [PATCH] IRowContainer: Added method fetchField() (BC break) --- src/Database/IRowContainer.php | 7 +++++++ src/Database/ResultSet.php | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Database/IRowContainer.php b/src/Database/IRowContainer.php index 8b62d19ac..9eb0b483f 100644 --- a/src/Database/IRowContainer.php +++ b/src/Database/IRowContainer.php @@ -22,6 +22,13 @@ interface IRowContainer extends \Traversable */ function fetch(); + /** + * Fetches single field. + * @param int|string + * @return mixed + */ + function fetchField($column = 0); + /** * Fetches all rows as associative array. * @param string|int column name used for an array key or NULL for numeric index diff --git a/src/Database/ResultSet.php b/src/Database/ResultSet.php index 931ae045d..607460d6d 100644 --- a/src/Database/ResultSet.php +++ b/src/Database/ResultSet.php @@ -274,9 +274,7 @@ public function fetch() /** - * Fetches single field. - * @param int - * @return mixed + * @inheritDoc */ public function fetchField($column = 0) {