Permalink
Browse files

Add additional interface notes, correct typo

  • Loading branch information...
1 parent cec8307 commit 36291d10b0bd45f8175ddf7b9fe9c6d2854b10ea @bcrowe bcrowe committed Jan 22, 2014
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/ORM/ResultSet.php
View
@@ -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
*/
@@ -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() {
@@ -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() {
@@ -151,6 +155,8 @@ public function key() {
/**
* Advances the iterator pointer to the next record
*
+ * Part of Iterator interface.
+ *
* @return void
*/
public function next() {
@@ -160,6 +166,8 @@ public function next() {
/**
* Rewind a ResultSet.
*
+ * Part of Iterator interface.
+ *
* @throws Cake\Database\Exception
* @return void
*/
@@ -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() {
@@ -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
*/

0 comments on commit 36291d1

Please sign in to comment.