Skip to content

Commit

Permalink
Add additional interface notes, correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Jan 22, 2014
1 parent cec8307 commit 36291d1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/ORM/ResultSet.php
Expand Up @@ -36,7 +36,7 @@ class ResultSet implements Countable, Iterator, Serializable, JsonSerializable {
use CollectionTrait;

/**
* Original query from where results where generated
* Original query from where results were generated
*
* @var Query
*/
Expand Down Expand Up @@ -133,6 +133,8 @@ public function __construct($query, $statement) {
/**
* Returns the current record in the result iterator
*
* Part of Iterator interface.
*
* @return array|object
*/
public function current() {
Expand All @@ -142,6 +144,8 @@ public function current() {
/**
* Returns the key of the current record in the iterator
*
* Part of Iterator interface.
*
* @return integer
*/
public function key() {
Expand All @@ -151,6 +155,8 @@ public function key() {
/**
* Advances the iterator pointer to the next record
*
* Part of Iterator interface.
*
* @return void
*/
public function next() {
Expand All @@ -160,6 +166,8 @@ public function next() {
/**
* Rewind a ResultSet.
*
* Part of Iterator interface.
*
* @throws Cake\Database\Exception
* @return void
*/
Expand All @@ -179,6 +187,8 @@ public function rewind() {
/**
* Whether there are more results to be fetched from the iterator
*
* Part of Iterator interface.
*
* @return boolean
*/
public function valid() {
Expand Down Expand Up @@ -257,7 +267,7 @@ public function first() {
/**
* Gives the number of rows in the result set.
*
* Part of the countable interface.
* Part of the Countable interface.
*
* @return integer
*/
Expand Down

0 comments on commit 36291d1

Please sign in to comment.