Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add additional interface notes, correct typo

  • Loading branch information...
commit 36291d10b0bd45f8175ddf7b9fe9c6d2854b10ea 1 parent cec8307
@bcrowe bcrowe authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/ORM/ResultSet.php
View
14 src/ORM/ResultSet.php
@@ -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
*/
Please sign in to comment.
Something went wrong with that request. Please try again.