Trait CaseExpressionTrait
Trait that holds shared functionality for case related expressions.
        
    Namespace: Cake\Database\Expression
    
    
    
      
  
  
        Method Summary
- 
          compileNullableValue() protectedCompiles a nullable value to SQL. 
- 
          inferType() protectedInfers 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): stringCompiles 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
stringinferType() ¶ protected
inferType(mixed $value): string|nullInfers the abstract type for the given value.
Parameters
- 
                mixed$value
- The value for which to infer the type. 
Returns
string|nullThe abstract type, or null if it could not be inferred.
