@param $limit

@return $this
495276
public function setLimit($limit) {
        if (!is_numeric($limit)) {
            $limit = self::DEFAULT_LIMIT;
        }

        if (0 == $limit) {
            // Display ALL Results - No Limit!
            $limit = null;
        }

        $this->limit = $limit;

        return $this;
    }
133119
public function limit($limit) {
        if (!is_int($limit)) {
            $this->setError('q', 'No valid Limit');
            return false;
        }

        $this->q->apd(' LIMIT ' . $limit);
        return $this;
    }
1324558
public function limit($limit = null)
    {
        if (isset($limit)) {
            $this->setLimit($limit);

            return $this;
        }

        return $this->getLimit();
    }
1032397
public function limit($offset, $limit)
	{
		$this->criteria->setFirstResult($offset)->setMaxResults($limit);

		return $this;
	}
746056
public function page($limit, $offset)
    {
        $this->limit = $limit;
        $this->offset = $offset;
        return $this;
    }
213056
public function limit($limit) : QueryBuilder
    {
        $this->_query[] = "LIMIT";

        if(is_array($limit)) {
            $this->_query[] = $this->getQuoted($limit[0]).",";
            $this->_query[] = $this->getQuoted($limit[1]);

            return $this;
        }

        $this->_query[] = $this->getQuoted($limit);

        return $this;
    }
205616
public function limit($limit, $offset = 0)
    {
        $this->limit = $limit;
        $this->offset = $offset;

        return $this;
    }
670310
public function isAfter($limit, $inclusive = false)
    {
        $this->addCondition(__METHOD__, [$limit, $inclusive]);

        return $this;
    }
847525
public function limit($value)
    {
        $property = $this->unions ? 'unionLimit' : 'limit';

        if ($value >= 0) {
            $this->{$property} = $value;
        }

        return $this;
    }
88542
final public function limit($limit, $offset = 0)
    {
        $this->_sql['limit'] = $limit;
        $this->offset($offset);
        return $this;
    }
267158
public function limit($offset = null, $limit = null)
    {
    	$args = func_get_args();
    	if (count($args) === 0) {
    		throw new Exception('At least 1 argument');
    	}
    	if (count($args) == 1) {
    		$this->limit =  $args[0];
    	} else {
    		list($this->offset, $this->limit) = $args;
    	}
        return $this;
    }
1147511
public function setLimit($limit)
    {
        $this->limit = (int)$limit;
        $this->total->pages = 1;

        if ($this->limit > 0) {
            $this->total->pages = @ceil($this->total->rows / $this->limit);
        }

        $activePage = $this->getActivePage();

        $this->numbering = new SplArrayObject([
            'start' => $start = ($activePage == 1 ? 1 : ($activePage - 1) * $this->limit + 1),
            'end'   => ($start + $this->total->founds) - 1,
        ]);

        return $this;
    }
1148232
public function limit(int $limit, int $offset = null): self
    {
        $this->query['limit'] = ($offset === null)
            ? [abs($limit)] : [abs($limit), abs($offset)];

        return $this;
    }
505042
public function setRedirectLimit($limit)
    {
        if (!is_int($limit)) {
            throw new InvalidArgumentException('redirectLimit must be an integer.');
        }

        if ($limit < 1) {
            throw new InvalidArgumentException('redirectLimit must be greater than or equal to one.');
        }

        $this->redirectLimit = $limit;

        return $this;
    }
919078
public function limit(int $limit = 0): Select
    {
        if (!\is_int($limit) || $limit <= 0) {
            throw new InvalidArgumentException('$limit have to be a positive integer');
        }
        $this->limit = $limit;
        return $this;
    }
680849
public function paginate($limit)
    {
        $capsule = $this->_database->getCapsule();
        $this->_model = $capsule->table($this->table);
        $paginator = new Pagination();
        $paginator->setLimit($limit)->setModel($this, $this->_model);

        return $paginator->paginate();
    }
1343217
public function limit(int $limit, int $offset = 0, bool $limitOnMainTable = false) : self
    {
        $this->qiterator = null;
        $this->li_of = [ $limit, $offset, $limitOnMainTable ? 1 : 0 ];
        return $this;
    }