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