public function limit($offset, $amount = null)
    {
        if (is_null($amount)) {
            $this->append(' LIMIT ' . $offset);
        } else {
            $this->append(sprintf(' LIMIT %s, %s', $offset, $amount));
        }

        return $this;
    }
public function limit($offset, $amount = null)
    {
        if (is_null($amount)) {
            $this->append(' LIMIT ' . $offset);
        } else {
            $this->append(sprintf(' LIMIT %s, %s', $offset, $amount));
        }

        return $this;
    }
public function limit ( $ offset , $ amount = null ) { if ( is_null ( $ amount ) ) { $ this -> append ( ' LIMIT ' . $ offset ) ; } else { $ this -> append ( sprintf ( ' LIMIT %s, %s' , $ offset , $ amount ) ) ; } return $ this ; }
Appends LIMIT expression

@param integer $offset
@param integer $amount Amount of rows to be returned
@return \Krystal\Db\Sql\QueryBuilder
Appends LIMIT expression