@param int $limit
@param int $offset

@return \DVelopment\FastBill\Model\Subscription[]
976753
public function getSubscriptions($limit = 100, $offset = 0)
    {
        /** @var SubscriptionFbApi $response */
        $response = $this->call(new Request('subscription.get', array(), $limit, $offset), 'DVelopment\FastBill\Model\SubscriptionFbApi');

        return $response->getResponse()->getSubscriptions();
    }
746056
public function page($limit, $offset)
    {
        $this->limit = $limit;
        $this->offset = $offset;
        return $this;
    }
743935
public function limit($offset, $limit)
	{
		$this->data = $this->data_source->limit($limit, $offset)->fetchAll();

		return $this;
	}
1352998
public function getPublishResources($limit = 20, $offset = 0)
	{
		return (new Disk\Resource\Collection(function($parameters) {
			$previous = $this->setAccessTokenRequired(false);
			$response = $this->send((new Request($this->uri->withPath($this->uri->getPath().'resources/public')
				->withQuery(http_build_query($parameters, null, '&')), 'GET')));
			$this->setAccessTokenRequired($previous);

			if ($response->getStatusCode() == 200)
			{
				$response = json_decode($response->getBody(), true);

				if (isset($response['items']))
				{
					return array_map(function($item) {
						return new Disk\Resource\Opened($item, $this, $this->uri);
					}, $response['items']);
				}
			}

			return [];
		}))
			->setLimit($limit, $offset);
	}
691726
public function getTasks($limit = 100, $offset = 0)
    {
        /** @var TaskFbApi $response */
        $response = $this->call(new Request('task.get', array(), $limit, $offset), 'DVelopment\FastBill\Model\TaskFbApi');

        return $response->getResponse()->getTasks();
    }
721174
public function limit($limit, $offset = null){
		if($this->validateConditions())
			return $this;

		$this->resetState();
		$this->limit = array($limit,
			($offset !== null && $this->type === Manager::STMT_SELECT) ? $offset : null);
		return $this;
	}
791159
public function limit($limit = null, $offset = null)
    {
        $this->results = $this->fetch($limit, $offset);

        return $this->results->fetchAll();
    }
8271
public function getAllFriendships($limit = null, $offset = null): array
    {
        return $this->findFriendshipsByStatus(null, $limit, $offset);
    }
950366
private function normalizeOffsetAndLimit($offset = 0, $limit = 25)
    {
        $offset = (int) $offset;
        $limit = (int) $limit;

        $offset = max($offset, 0);
        $limit = min(max($limit, 0), 25);

        return [$offset, $limit];
    }
773071
public function findRelevantEvents($offset, $limit)
    {
        $query = $this->prepareRelevantEventsQuery();

        $query->getQueryBuilder()->setFirstResult($offset);
        $query->getQueryBuilder()->setMaxResults($limit);

        return $query->execute();
    }
268978
public function getPeople($offset = 0, $limit = 25)
    {
        list($offset, $limit) = $this->normalizeOffsetAndLimit($offset, $limit);

        return $this->request('people', [
            'offset' => $offset,
            'limit' => $limit,
        ]);
    }
1026454
public function getBlockedFriendships($limit = null, $offset = 0): array
    {
        return $this->findFriendshipsByStatus(Status::BLOCKED, $limit, $offset);
    }
1267297
public function getMigrations($limit = null, $offset = null)
    {
        return $this->storageHandler->loadMigrations($limit, $offset);
    }
205616
public function limit($limit, $offset = 0)
    {
        $this->limit = $limit;
        $this->offset = $offset;

        return $this;
    }
1159925
public function getDeniedFriendships($limit = null, $offset = 0): array
    {
        return $this->findFriendshipsByStatus(Status::DENIED, $limit, $offset);
    }
416556
public function getChecks($limit = NULL, $offset = NULL) {
    $parameters = array();
    if (!empty($limit)) {
      $parameters['limit'] = $limit;
      if (!empty($offset)) {
        $parameters['offset'] = $offset;
      }
    }
    $data = $this->request('GET', 'checks', $parameters);
    return $data->checks;
  }
88542
final public function limit($limit, $offset = 0)
    {
        $this->_sql['limit'] = $limit;
        $this->offset($offset);
        return $this;
    }