src/Builder/SearchBuilder.php
public function contextCondition($type = 'AND')
    {
        $type = strtoupper($type);

        if (!in_array($type, ['AND', 'OR'])) {
            throw new LoggerException('Type has to be either "AND" or "OR"!');
        }

        $params = $this->getParams();
        $params['context_condition'] = $type;

        $this->setParams($params);

        return $this;
    }
public function contextCondition($type = 'AND')
    {
        $type = strtoupper($type);

        if (!in_array($type, ['AND', 'OR'])) {
            throw new LoggerException('Type has to be either "AND" or "OR"!');
        }

        $params = $this->getParams();
        $params['context_condition'] = $type;

        $this->setParams($params);

        return $this;
    }
public function contextCondition ( $ type = 'AND' ) { $ type = strtoupper ( $ type ) ; if ( ! in_array ( $ type , [ 'AND' , 'OR' ] ) ) { throw new LoggerException ( 'Type has to be either "AND" or "OR"!' ) ; } $ params = $ this -> getParams ( ) ; $ params [ 'context_condition' ] = $ type ; $ this -> setParams ( $ params ) ; return $ this ; }
Set the condition type for the contexts

@param string $type

@return $this
Set the condition type for the contexts