limit !== null; } public function getLimit() { return $this->limit; } public function limit($limit) { if ($limit !== null) { $limit = (int) $limit; if ($limit < 0) { $limit = null; } } $this->limit = $limit; return $this; } public function resetLimit() { $this->limit = null; return $this; } public function hasOffset() { return $this->offset !== null; } public function getOffset() { return $this->offset; } public function offset($offset) { if ($offset !== null) { $offset = (int) $offset; if ($offset <= 0) { $offset = null; } } $this->offset = $offset; return $this; } public function resetOffset() { $this->offset = null; return $this; } }