On this page
Trait CaseExpressionTrait
Trait that holds shared functionality for case related expressions.
Property Summary
-
$_typeMap public @property
Cake\Database\TypeMap
The type map to use when using an array of conditions for the
WHEN
value.
Method Summary
compileNullableValue() protected
Compiles a nullable value to SQL.
inferType() protected
Infers the abstract type for the given value.
Method Detail
compileNullableValue() protected
compileNullableValue(Cake\Database\ValueBinder $binder, Cake\Database\ExpressionInterface|object|scalar|null $value, string|null $type = null): string
Compiles a nullable value to SQL.
Parameters
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.
Returns
string
inferType() protected
inferType(mixed $value): string|null
Infers the abstract type for the given value.
Parameters
mixed
$value-
The value for which to infer the type.
Returns
string|null
Property Detail
$_typeMap public @property
The type map to use when using an array of conditions for the WHEN
value.
Type
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