public function buildProximityMatch($operator, $operands, &$params)
    {
        if (!isset($operands[0], $operands[1], $operands[2])) {
            throw new InvalidParamException("Operator '$operator' requires three operands.");
        }

        list($column, $value, $proximity) = $operands;

        return $this->buildMatchColumn($column) . ' ' . $this->buildMatchValue($value, $params) . '~' . (int) $proximity;
    }
public function buildProximityMatch($operator, $operands, &$params)
    {
        if (!isset($operands[0], $operands[1], $operands[2])) {
            throw new InvalidParamException("Operator '$operator' requires three operands.");
        }

        list($column, $value, $proximity) = $operands;

        return $this->buildMatchColumn($column) . ' ' . $this->buildMatchValue($value, $params) . '~' . (int) $proximity;
    }
public function buildProximityMatch ( $ operator , $ operands , & $ params ) { if ( ! isset ( $ operands [ 0 ] , $ operands [ 1 ] , $ operands [ 2 ] ) ) { throw new InvalidParamException ( "Operator '$operator' requires three operands." ) ; } list ( $ column , $ value , $ proximity ) = $ operands ; return $ this -> buildMatchColumn ( $ column ) . ' ' . $ this -> buildMatchValue ( $ value , $ params ) . '~' . ( int ) $ proximity ; }
Create PROXIMITY 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 PROXIMITY expressions