original_string: protected function _renderHaving($sql)
      {
          if ($this->_parts[self::FROM] && $this->_parts[self::HAVING]) {
              $sql .= ' ' . self::SQL_HAVING . ' ' . implode(' ', $this->_parts[self::HAVING]);
          }
  
          return $sql;
      }
code: protected function _renderHaving($sql)
      {
          if ($this->_parts[self::FROM] && $this->_parts[self::HAVING]) {
              $sql .= ' ' . self::SQL_HAVING . ' ' . implode(' ', $this->_parts[self::HAVING]);
          }
  
          return $sql;
      }
code_tokens: protected function _renderHaving ( $ sql ) { if ( $ this -> _parts [ self :: FROM ] && $ this -> _parts [ self :: HAVING ] ) { $ sql .= ' ' . self :: SQL_HAVING . ' ' . implode ( ' ' , $ this -> _parts [ self :: HAVING ] ) ; } return $ sql ; }
docstring: Render HAVING clause
  
  @param string   $sql SQL query
  @return string
docstring_tokens: Render HAVING clause