Class IdentifierExpression
Represents a single identifier name in the database
- Cake\Database\Expression\IdentifierExpression implements Cake\Database\ExpressionInterface
Properties summary
-
$_identifier
protectedHolds the identifier stringstring
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() public
This method is a no-op, this is a leaf type of expression, hence there is nothing to traverse
Method Detail
__construct()source public
__construct( string $identifier )
Constructor
Parameters
- string
$identifier
- The identifier this expression represents
getIdentifier()source public
getIdentifier( )
Returns the identifier this expression represents
Returns
stringsetIdentifier()source public
setIdentifier( string $identifier )
Sets the identifier this expression represents
Parameters
- string
$identifier
- The identifier
sql()source public
sql( Cake\Database\ValueBinder $generator )
Converts the expression to its string representation
Parameters
- Cake\Database\ValueBinder
$generator
- Placeholder generator object
Returns
stringImplementation of
Cake\Database\ExpressionInterface::sql()
traverse()source public
traverse( callable $callable )
This method is a no-op, this is a leaf type of expression, hence there is nothing to traverse
Parameters
- callable
$callable
- The callable to traverse with.
Implementation of
Cake\Database\ExpressionInterface::traverse()
Properties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Database.Expression.IdentifierExpression.html