public function prepareLimit($limit, $offset = null)
    {
        if ($offset) {
            $this->setLimit = ' LIMIT ' . $limit . ', ' . $offset . '';
        } else {
            $this->setLimit = ' LIMIT ' . $limit . '';
        }

        return $this;
    }
public function prepareLimit($limit, $offset = null)
    {
        if ($offset) {
            $this->setLimit = ' LIMIT ' . $limit . ', ' . $offset . '';
        } else {
            $this->setLimit = ' LIMIT ' . $limit . '';
        }

        return $this;
    }
public function prepareLimit ( $ limit , $ offset = null ) { if ( $ offset ) { $ this -> setLimit = ' LIMIT ' . $ limit . ', ' . $ offset . '' ; } else { $ this -> setLimit = ' LIMIT ' . $ limit . '' ; } return $ this ; }
PrepareLimit function.

@param int      $limit
@param int|null $offset

@return Database
PrepareLimit function .