0 follower

Interface Yiisoft\Db\Expression\ExpressionInterface

Implemented byYiisoft\Db\Expression\CompositeExpression, Yiisoft\Db\Expression\Expression, Yiisoft\Db\Expression\Function\ArrayMerge, Yiisoft\Db\Expression\Function\Greatest, Yiisoft\Db\Expression\Function\Least, Yiisoft\Db\Expression\Function\Length, Yiisoft\Db\Expression\Function\Longest, Yiisoft\Db\Expression\Function\MultiOperandFunction, Yiisoft\Db\Expression\Function\Shortest, Yiisoft\Db\Expression\Statement\CaseX, Yiisoft\Db\Expression\Value\ArrayValue, Yiisoft\Db\Expression\Value\ColumnName, Yiisoft\Db\Expression\Value\DateTimeValue, Yiisoft\Db\Expression\Value\JsonValue, Yiisoft\Db\Expression\Value\Param, Yiisoft\Db\Expression\Value\StructuredValue, Yiisoft\Db\Expression\Value\Value, Yiisoft\Db\QueryBuilder\Condition\ConditionInterface, Yiisoft\Db\Query\QueryInterface

This interface defines a set of methods that an object should implement to represent an expression in database queries, such as one for filtering or ordering results.

These methods include getting the expression as a string, getting the parameters to bind to the expression, and getting the types of the parameters. You can use classes that implement this interface in a variety of query building methods provided by the library.

The database abstraction layer of a Yii framework supports objects that implement this interface and will use {@see \Yiisoft\Db\Expression\ExpressionBuilderInterface} to build them.

The default implementation is a class {@see \Yiisoft\Db\Expression\Expression}.