\Cake\Database\ExpressionIdentifierExpression

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.

Summary

Methods
Properties
Constants
__construct()
setIdentifier()
getIdentifier()
sql()
traverse()
No public properties found
No constants found
No protected methods found
$_identifier
N/A
No private methods found
No private properties found
N/A

Properties

$_identifier

$_identifier : string

Holds the identifier string

Type

string

Methods

__construct()

__construct(string  $identifier) 

Constructor

Parameters

string $identifier

The identifier this expression represents

setIdentifier()

setIdentifier(string  $identifier) : void

Sets the identifier this expression represents

Parameters

string $identifier

The identifier

getIdentifier()

getIdentifier() : string

Returns the identifier this expression represents

Returns

string

sql()

sql(\Cake\Database\ValueBinder  $generator) : string

Converts the expression to its string representation

Parameters

\Cake\Database\ValueBinder $generator

Placeholder generator object

Returns

string

traverse()

traverse(callable  $callable) : void

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.