Commit aad4ca7f authored by Steve Müller's avatar Steve Müller

fix documentation

parent ba4ab893
...@@ -45,22 +45,27 @@ interface ResultStatement extends \Traversable ...@@ -45,22 +45,27 @@ interface ResultStatement extends \Traversable
/** /**
* Sets the fetch mode to use while iterating this statement. * Sets the fetch mode to use while iterating this statement.
* *
* @param integer $fetchMode * @param integer $fetchMode The fetch mode must be one of the PDO::FETCH_* constants.
* @param mixed $arg2 * @param mixed $arg2
* @param mixed $arg3 * @param mixed $arg3
* *
* @return boolean * @return boolean
*
* @see PDO::FETCH_* constants.
*/ */
public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null); public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null);
/** /**
* @see Query::HYDRATE_* constants * Returns the next row of a result set.
* *
* @param integer|null $fetchMode Controls how the next row will be returned to the caller. * @param integer|null $fetchMode Controls how the next row will be returned to the caller.
* This value must be one of the Query::HYDRATE_* constants, * The value must be one of the PDO::FETCH_* constants,
* defaulting to Query::HYDRATE_BOTH * defaulting to PDO::FETCH_BOTH.
*
* @return mixed The return value of this method on success depends on the fetch mode. In all cases, FALSE is
* returned on failure.
* *
* @return mixed * @see PDO::FETCH_* constants.
*/ */
public function fetch($fetchMode = null); public function fetch($fetchMode = null);
...@@ -68,10 +73,12 @@ interface ResultStatement extends \Traversable ...@@ -68,10 +73,12 @@ interface ResultStatement extends \Traversable
* Returns an array containing all of the result set rows. * Returns an array containing all of the result set rows.
* *
* @param integer|null $fetchMode Controls how the next row will be returned to the caller. * @param integer|null $fetchMode Controls how the next row will be returned to the caller.
* This value must be one of the Query::HYDRATE_* constants, * The value must be one of the PDO::FETCH_* constants,
* defaulting to Query::HYDRATE_BOTH * defaulting to PDO::FETCH_BOTH.
* *
* @return array * @return array
*
* @see PDO::FETCH_* constants.
*/ */
public function fetchAll($fetchMode = null); public function fetchAll($fetchMode = null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment