diff --git a/src/VKApi/VkParams.php b/src/VKApi/VkParams.php index 0137c88..7e0c158 100644 --- a/src/VKApi/VkParams.php +++ b/src/VKApi/VkParams.php @@ -50,4 +50,14 @@ public function existsParam($key) { return array_key_exists($key, $this->params); } + + public function addOffset($offset = 100) + { + $old_offset = 0; + $offset = (int) $offset; + if ($this->existsParam("offset")) { + $old_offset = (int) $this->get("offset"); + } + return $this->set("offset", $old_offset + $offset); + } } \ No newline at end of file