yii\sphinx\MatchBuilder::buildMultipleMatch PHP Метод

buildMultipleMatch() публичный Метод

Create MAYBE, SENTENCE or PARAGRAPH expressions.
public buildMultipleMatch ( string $operator, array $operands, &$params ) : string
$operator string the operator which is used for Create Match expressions
$operands array the Match expressions
Результат string the MATCH expression
    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);
    }