original_string: protected function buildHaving()
      {
          if (count($this->having) === 0) {
              return '';
          }
  
          // Use a ConditionSet to build the having clause
          $conditionSet = new Query\Condition\AndSet($this, $this->having);
          return "HAVING {$conditionSet->buildWithoutParentheses()}";
      }
code: protected function buildHaving()
      {
          if (count($this->having) === 0) {
              return '';
          }
  
          // Use a ConditionSet to build the having clause
          $conditionSet = new Query\Condition\AndSet($this, $this->having);
          return "HAVING {$conditionSet->buildWithoutParentheses()}";
      }
code_tokens: protected function buildHaving ( ) { if ( count ( $ this -> having ) === 0 ) { return '' ; } // Use a ConditionSet to build the having clause $ conditionSet = new Query \ Condition \ AndSet ( $ this , $ this -> having ) ; return "HAVING {$conditionSet->buildWithoutParentheses()}" ; }
docstring: Build and return the having string.
  
  @return string
docstring_tokens: Build and return the having string .