public static function buildHaving($having)
    {
        if (!empty($having)) {
            return ' HAVING (' . (is_array($having) ? join(') AND (', static::_mapConditions($having)) : $having) . ')';
        }
    }
public static function buildHaving($having)
    {
        if (!empty($having)) {
            return ' HAVING (' . (is_array($having) ? join(') AND (', static::_mapConditions($having)) : $having) . ')';
        }
    }
public static function buildHaving ( $ having ) { if ( ! empty ( $ having ) ) { return ' HAVING (' . ( is_array ( $ having ) ? join ( ') AND (' , static :: _mapConditions ( $ having ) ) : $ having ) . ')' ; } }
Builds the HAVING clause of a MySQL database query.

@param array|string $having Same as conditions. Can provide a string to use or an array of field/value pairs which will be joined by the AND operator.
@return string|null
Builds the HAVING clause of a MySQL database query .