Skip to content

Commit

Permalink
IRowContainer: Added method fetchField() (BC break)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxycode authored and dg committed Jan 25, 2017
1 parent f7a6af0 commit 230b081
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/Database/IRowContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Database/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ public function fetch()


/**
* Fetches single field.
* @param int
* @return mixed
* @inheritDoc
*/
public function fetchField($column = 0)
{
Expand Down

0 comments on commit 230b081

Please sign in to comment.