public function setOffset($offset)
{
if ($offset < 1 || !is_int($offset)) {
throw new \InvalidArgumentException('setOffset() accepts only integers greater 0.', 1263387252);
}
$this->offset = $offset;
return $this;
}
/** * @test * @expectedException \InvalidArgumentException */ public function setOffsetRejectsIntegersLessThanZero() { $this->query->setOffset(-1); }