StringExpression
in package
implements
ExpressionInterface
String expression with collation.
Table of Contents
Interfaces
- ExpressionInterface
- An interface used by Expression objects.
Properties
- $collation : string
- $string : string
Methods
- __construct() : mixed
- getCollation() : string
- Returns the string collation.
- setCollation() : void
- Sets the string collation.
- sql() : string
- Converts the Node into a SQL string fragment.
- traverse() : $this
- Iterates 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.
Properties
$collation
protected
string
$collation
$string
protected
string
$string
Methods
__construct()
public
__construct(string $string, string $collation) : mixed
Parameters
- $string : string
-
String value
- $collation : string
-
String collation
getCollation()
Returns the string collation.
public
getCollation() : string
Return values
stringsetCollation()
Sets the string collation.
public
setCollation(string $collation) : void
Parameters
- $collation : string
-
String collation
sql()
Converts the Node into a SQL string fragment.
public
sql(ValueBinder $binder) : string
Parameters
- $binder : ValueBinder
-
Parameter binder
Tags
Return values
stringtraverse()
Iterates 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.
public
traverse(Closure $callback) : $this
Parameters
- $callback : Closure
-
The callable to apply to all nodes.