MysqliDb::_buildLimit PHP Method

_buildLimit() protected method

Abstraction method that will build the LIMIT part of the WHERE statement
protected _buildLimit ( integer | array $numRows ) : void
$numRows integer | array Array to define SQL limit in format Array ($count, $offset) or only $count
return void
    protected function _buildLimit($numRows)
    {
        if (!isset($numRows)) {
            return;
        }
        if (is_array($numRows)) {
            $this->_query .= ' LIMIT ' . (int) $numRows[0] . ', ' . (int) $numRows[1];
        } else {
            $this->_query .= ' LIMIT ' . (int) $numRows;
        }
    }