Class IdentifierExpression
Represents a single identifier name in the database.
Identifier values are unsafe with user supplied data. Values will be quoted when identifier quoting is enabled.
Property Summary
- 
        $_identifier protectedstringHolds the identifier string 
Method Summary
- 
          __construct() publicConstructor 
- 
          getIdentifier() publicReturns the identifier this expression represents 
- 
          setIdentifier() publicSets the identifier this expression represents 
- 
          sql() publicConverts the expression to its string representation 
- 
          traverse() publicIterates over each part of the expression recursively for every level of the expressions tree and executes the $visitor callable passing as first parameter the instance of the expression currently being iterated. 
Method Detail
__construct() ¶ public
__construct(string $identifier)Constructor
Parameters
- 
                string$identifier
- The identifier this expression represents 
getIdentifier() ¶ public
getIdentifier(): stringReturns the identifier this expression represents
Returns
stringsetIdentifier() ¶ public
setIdentifier(string $identifier): voidSets the identifier this expression represents
Parameters
- 
                string$identifier
- The identifier 
Returns
voidsql() ¶ public
sql(Cake\Database\ValueBinder $generator): stringConverts the expression to its string representation
Parameters
- 
                Cake\Database\ValueBinder$generator
- Placeholder generator object 
Returns
stringtraverse() ¶ public
traverse(Closure $visitor): $thisIterates over each part of the expression recursively for every level of the expressions tree and executes the $visitor callable passing as first parameter the instance of the expression currently being iterated.
Parameters
- 
                Closure$visitor
Returns
$this