Class StringExpression
String expression with collation.
        
    Namespace: Cake\Database\Expression
    
    
    
      
  
      Property Summary
- 
        $collation protectedstring
- 
        $string protectedstring
Method Summary
- 
          __construct() public
- 
          getCollation() publicReturns the string collation. 
- 
          setCollation() publicSets the string collation. 
- 
          sql() publicConverts the Node into a SQL string fragment. 
- 
          traverse() publicIterates over each part of the expression recursively for every level of the expressions tree and executes the $callback callable passing as first parameter the instance of the expression currently being iterated. 
Method Detail
__construct() ¶ public
__construct(string $string, string $collation)Parameters
- 
                string$string
- String value 
- 
                string$collation
- String collation 
setCollation() ¶ public
setCollation(string $collation): voidSets the string collation.
Parameters
- 
                string$collation
- String collation 
Returns
voidsql() ¶ public
sql(Cake\Database\ValueBinder $binder): stringConverts the Node into a SQL string fragment.
Parameters
- 
                Cake\Database\ValueBinder$binder
Returns
stringtraverse() ¶ public
traverse(Closure $callback): $thisIterates over each part of the expression recursively for every level of the expressions tree and executes the $callback callable passing as first parameter the instance of the expression currently being iterated.
Parameters
- 
                Closure$callback
Returns
$this