src/Driver/Compiler.php
protected function compileLimit(int $limit, int $offset): string
    {
        if (empty($limit) && empty($offset)) {
            return '';
        }

        $statement = '';
        if (!empty($limit)) {
            $statement = "LIMIT {$limit} ";
        }

        if (!empty($offset)) {
            $statement .= "OFFSET {$offset}";
        }

        return trim($statement);
    }
protected function compileLimit(int $limit, int $offset): string
    {
        if (empty($limit) && empty($offset)) {
            return '';
        }

        $statement = '';
        if (!empty($limit)) {
            $statement = "LIMIT {$limit} ";
        }

        if (!empty($offset)) {
            $statement .= "OFFSET {$offset}";
        }

        return trim($statement);
    }
protected function compileLimit ( int $ limit , int $ offset ) : string { if ( empty ( $ limit ) && empty ( $ offset ) ) { return '' ; } $ statement = '' ; if ( ! empty ( $ limit ) ) { $ statement = "LIMIT {$limit} " ; } if ( ! empty ( $ offset ) ) { $ statement .= "OFFSET {$offset}" ; } return trim ( $ statement ) ; }
Compile limit statement.

@param int $limit
@param int $offset

@return string
Compile limit statement .