src/Leevel/Database/Condition.php
public function limit(int $offset = 0, int $count = 0): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        if (0 === $count) {
            return $this->top($offset);
        }

        $this->options['limitCount'] = $count;
        $this->options['limitOffset'] = $offset;
        $this->options['limitQuery'] = true;

        return $this;
    }
public function limit(int $offset = 0, int $count = 0): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        if (0 === $count) {
            return $this->top($offset);
        }

        $this->options['limitCount'] = $count;
        $this->options['limitOffset'] = $offset;
        $this->options['limitQuery'] = true;

        return $this;
    }
limit 限制条数.

@param int $offset
@param int $count

@return $this