private function _addQueryCondition($builder, $type, $columnName, $operator, $value)
    {
        switch ($type) {
            // Having by
            case 'having':
                $builder->having($columnName, $operator, $value);
                break;

            // Standard where statement
            case 'where':
            default:
                $builder->where($columnName, $operator, $value);
                break;
        }

        return $builder;
    }
private function _addQueryCondition($builder, $type, $columnName, $operator, $value)
    {
        switch ($type) {
            // Having by
            case 'having':
                $builder->having($columnName, $operator, $value);
                break;

            // Standard where statement
            case 'where':
            default:
                $builder->where($columnName, $operator, $value);
                break;
        }

        return $builder;
    }
private function _addQueryCondition ( $ builder , $ type , $ columnName , $ operator , $ value ) { switch ( $ type ) { // Having by case 'having' : $ builder -> having ( $ columnName , $ operator , $ value ) ; break ; // Standard where statement case 'where' : default : $ builder -> where ( $ columnName , $ operator , $ value ) ; break ; } return $ builder ; }
Adds condition to the query builder

@param \Illuminate\Database\Query\Builder $builder
@param string $type
@param string $columnName
@param string $operator
@param string $value
@return \Illuminate\Database\Query\Builder
Adds condition to the query builder