Trait CaseExpressionTrait
Trait that holds shared functionality for case related expressions.
Namespace: Cake\Database\Expression
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