You are here

public function Criteria::setMaxResults in Plug 7

Sets maxResults.

Parameters

int|null $maxResults The value to set.:

Return value

Criteria

1 call to Criteria::setMaxResults()
Criteria::__construct in lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php
Construct a new Criteria.

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php, line 253

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

public function setMaxResults($maxResults) {
  $this->maxResults = null === $maxResults ? null : (int) $maxResults;
  return $this;
}