Trait that holds shared functionality for case related expressions.
Cake\Database\TypeMapThe type map to use when using an array of conditions for the WHEN value.
Compiles a nullable value to SQL.
Infers the abstract type for the given value.
compileNullableValue(Cake\Database\ValueBinder $binder, Cake\Database\ExpressionInterface|object|scalar|null $value, string|null $type = null): string
Compiles a nullable value to SQL.
Cake\Database\ValueBinder $binder The value binder to use.
Cake\Database\ExpressionInterface|object|scalar|null $value The value to compile.
string|null $type optional The value type.
stringinferType(mixed $value): string|null
Infers the abstract type for the given value.
mixed $value The value for which to infer the type.
string|nullThe type map to use when using an array of conditions for the WHEN value.
Cake\Database\TypeMap
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/trait-Cake.Database.Expression.CaseExpressionTrait.html