public function buildMultipleMatch($operator, $operands, &$params)
    {
        if (count($operands) < 3) {
            throw new InvalidParamException("Operator '$operator' requires three or more operands.");
        }

        $column = array_shift($operands);

        $phNames = [];

        foreach ($operands as $operand) {
            $phNames[] = $this->buildMatchValue($operand, $params);
        }

        return $this->buildMatchColumn($column) . ' ' . implode(' ' . $operator . ' ', $phNames);
    }
public function buildMultipleMatch($operator, $operands, &$params)
    {
        if (count($operands) < 3) {
            throw new InvalidParamException("Operator '$operator' requires three or more operands.");
        }

        $column = array_shift($operands);

        $phNames = [];

        foreach ($operands as $operand) {
            $phNames[] = $this->buildMatchValue($operand, $params);
        }

        return $this->buildMatchColumn($column) . ' ' . implode(' ' . $operator . ' ', $phNames);
    }
public function buildMultipleMatch ( $ operator , $ operands , & $ params ) { if ( count ( $ operands ) < 3 ) { throw new InvalidParamException ( "Operator '$operator' requires three or more operands." ) ; } $ column = array_shift ( $ operands ) ; $ phNames = [ ] ; foreach ( $ operands as $ operand ) { $ phNames [ ] = $ this -> buildMatchValue ( $ operand , $ params ) ; } return $ this -> buildMatchColumn ( $ column ) . ' ' . implode ( ' ' . $ operator . ' ' , $ phNames ) ; }
Create MAYBE, SENTENCE or PARAGRAPH expressions.
@param string $operator the operator which is used for Create Match expressions
@param array $operands the Match expressions
@param array &$params the expression parameters to be populated
@return string the MATCH expression
Create MAYBE SENTENCE or PARAGRAPH expressions .