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);
    }
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);
    }
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 ) ; }
Creates an Match expressions like `"column" operator value`.
@param string $operator the operator to use. Anything could be used e.g. `>`, `<=`, etc.
@param array $operands contains two column names.
@param array $params the expression parameters to be populated
@return string the MATCH expression
@throws InvalidParamException on invalid operands count.
Creates an Match expressions like column operator value .