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

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

Creates an Match expressions like "column" operator value.
public buildSimpleMatch ( string $operator, array $operands, array &$params ) : string
$operator string the operator to use. Anything could be used e.g. `>`, `<=`, etc.
$operands array contains two column names.
$params array the expression parameters to be populated
Результат string the MATCH expression
    public function buildSimpleMatch($operator, $operands, &$params)
    {
        if (count($operands) !== 2) {
            throw new InvalidParamException("Operator '{$operator}' requires two operands.");
        }
        list($column, $value) = $operands;
        if (isset($this->matchOperators[$operator])) {
            $operator = $this->matchOperators[$operator];
        }
        return $this->buildMatchColumn($column) . $operator . $this->buildMatchValue($value, $params);
    }