You are here

public function Criteria::setFirstResult in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php \Doctrine\Common\Collections\Criteria::setFirstResult()

Set the number of first result that this Criteria should return.

Parameters

int|null $firstResult The value to set.:

Return value

Criteria

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

File

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

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

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