public function Criteria::setFirstResult in Plug 7
Set the number of first result that this Criteria should return.
Parameters
int|null $firstResult The value to set.:
Return value
1 call to Criteria::setFirstResult()
- 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 229
Class
- Criteria
- Criteria for filtering Selectable collections.
Namespace
Doctrine\Common\CollectionsCode
public function setFirstResult($firstResult) {
$this->firstResult = null === $firstResult ? null : (int) $firstResult;
return $this;
}