src/PicORM/QueryBuilder.php
public function limit($limitStart = null, $limitEnd = null)
    {
        if ($limitStart === null) {
            return $this;
        }

        if ($limitEnd === null) {
            $this->_limit = sprintf('LIMIT %d', $limitStart);
        } else {
            $this->_limit = sprintf('LIMIT %d, %d', $limitStart, $limitEnd);
        }

        return $this;
    }
public function limit($limitStart = null, $limitEnd = null)
    {
        if ($limitStart === null) {
            return $this;
        }

        if ($limitEnd === null) {
            $this->_limit = sprintf('LIMIT %d', $limitStart);
        } else {
            $this->_limit = sprintf('LIMIT %d, %d', $limitStart, $limitEnd);
        }

        return $this;
    }
Set LIMIT clause

@param      $limitStart
@param null $limitEnd

@return $this