setLimit() public method

Sets the maximum size of the result set to limit. Returns $this to allow for chaining (fluid interface)
public setLimit ( integer $limit ) : Neos\Flow\Persistence\QueryInterface
$limit integer
return Neos\Flow\Persistence\QueryInterface
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function setLimitRejectsIntegersLessThanOne()
 {
     $this->query->setLimit(0);
 }