Log in
Model

Expression

Magento\Rule\Model\Condition\Sql\Expression

What it does

This class represents a SQL expression wrapper used in Magento's rule conditions system.

It extends Zend_Db_Expr to automatically wrap SQL expressions in parentheses when converted to strings, ensuring proper query syntax when building complex rule-based SQL conditions.

Developers use this when creating custom rule conditions that need to be translated into database queries.