use Shopware\Core\Framework\Log\Package;
use Shopware\Core\Framework\Rule\Exception\UnsupportedOperatorException;
use Shopware\Core\Framework\Util\FloatComparator;
#[Package('business-ops')]
class RuleComparison{ public static function numeric(?float
$itemValue, ?float
$ruleValue, string
$operator): bool
{ if ($itemValue === null
) { return self::
isNegativeOperator($operator);
} if ($operator === Rule::OPERATOR_EMPTY
) { return false;
} if ($ruleValue === null
) { return self::
isNegativeOperator($operator);
} return match ($operator) {