Skip to content

Commit 230b081

Browse files
foxycodedg
authored andcommitted
IRowContainer: Added method fetchField() (BC break)
1 parent f7a6af0 commit 230b081

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Database/IRowContainer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ interface IRowContainer extends \Traversable
2222
*/
2323
function fetch();
2424

25+
/**
26+
* Fetches single field.
27+
* @param int|string
28+
* @return mixed
29+
*/
30+
function fetchField($column = 0);
31+
2532
/**
2633
* Fetches all rows as associative array.
2734
* @param string|int column name used for an array key or NULL for numeric index

src/Database/ResultSet.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ public function fetch()
274274

275275

276276
/**
277-
* Fetches single field.
278-
* @param int
279-
* @return mixed
277+
* @inheritDoc
280278
*/
281279
public function fetchField($column = 0)
282280
{

0 commit comments

Comments
 (0)