original_string: public function having($cond, $value = null, $type = null)
      {
          if ($value !== null) {
              $cond = $this->_adapter->quoteInto($cond, $value, $type);
          }
  
          if ($this->_parts[self::HAVING]) {
              $this->_parts[self::HAVING][] = self::SQL_AND . " ($cond)";
          } else {
              $this->_parts[self::HAVING][] = "($cond)";
          }
  
          return $this;
      }
code: public function having($cond, $value = null, $type = null)
      {
          if ($value !== null) {
              $cond = $this->_adapter->quoteInto($cond, $value, $type);
          }
  
          if ($this->_parts[self::HAVING]) {
              $this->_parts[self::HAVING][] = self::SQL_AND . " ($cond)";
          } else {
              $this->_parts[self::HAVING][] = "($cond)";
          }
  
          return $this;
      }
code_tokens: public function having ( $ cond , $ value = null , $ type = null ) { if ( $ value !== null ) { $ cond = $ this -> _adapter -> quoteInto ( $ cond , $ value , $ type ) ; } if ( $ this -> _parts [ self :: HAVING ] ) { $ this -> _parts [ self :: HAVING ] [ ] = self :: SQL_AND . " ($cond)" ; } else { $ this -> _parts [ self :: HAVING ] [ ] = "($cond)" ; } return $ this ; }
docstring: Adds a HAVING condition to the query by AND.
  
  If a value is passed as the second param, it will be quoted
  and replaced into the condition wherever a question-mark
  appears. See {@link where()} for an example
  
  @param string $cond The HAVING condition.
  @param mixed    $value OPTIONAL The value to quote into the condition.
  @param int      $type  OPTIONAL The type of the given value
  @return Zend_Db_Select This Zend_Db_Select object.
docstring_tokens: Adds a HAVING condition to the query by AND .