CodeExplorer Comparison example
if ($where === null
) { $expression = 'IS NULL';
} $exprParameterKey = ':' .
$parameterKey;
if (\
is_array($where)) { $exprParameterKey = '(' .
$exprParameterKey . ')';
} $this->operatorValidator->
isValid($expression);
$expression =
new Comparison($exprKey,
$expression,
$where !== null ?
$exprParameterKey : null
);
if (isset($operator)) { $this->
orWhere($expression);
} else { $this->
andWhere($expression);
} if ($where !== null
) { $this->
setParameter($parameterKey,
$where);
} }