1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Updating _maxResults to allow for null

This commit is contained in:
Michael Gwynne 2017-09-04 09:26:11 +01:00
parent 4bc29d1049
commit fd9f96c766
2 changed files with 6 additions and 6 deletions

View File

@ -163,7 +163,7 @@ final class Query extends AbstractQuery
/**
* The maximum number of results to return (the "limit").
*
* @var integer
* @var integer|null
*/
private $_maxResults = null;
@ -628,7 +628,7 @@ final class Query extends AbstractQuery
/**
* Sets the maximum number of results to retrieve (the "limit").
*
* @param integer $maxResults
* @param integer|null $maxResults
*
* @return Query This query object.
*/
@ -644,7 +644,7 @@ final class Query extends AbstractQuery
* Gets the maximum number of results the query object was set to retrieve (the "limit").
* Returns NULL if {@link setMaxResults} was not applied to this query.
*
* @return integer Maximum number of results.
* @return integer|null Maximum number of results.
*/
public function getMaxResults()
{

View File

@ -107,7 +107,7 @@ class QueryBuilder
/**
* The maximum number of results to retrieve.
*
* @var integer
* @var integer|null
*/
private $_maxResults = null;
@ -653,7 +653,7 @@ class QueryBuilder
/**
* Sets the maximum number of results to retrieve (the "limit").
*
* @param integer $maxResults The maximum number of results to retrieve.
* @param integer|null $maxResults The maximum number of results to retrieve.
*
* @return self
*/
@ -668,7 +668,7 @@ class QueryBuilder
* Gets the maximum number of results the query object was set to retrieve (the "limit").
* Returns NULL if {@link setMaxResults} was not applied to this query builder.
*
* @return integer Maximum number of results.
* @return integer|null Maximum number of results.
*/
public function getMaxResults()
{