An expression object that represents an expression with only a single operand.
integer
1
integer
0
$_mode
protected integer
$_operator
protected string
$_value
protected mixed
Iterates 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.
__construct( string $operator , mixed $value , integer $mode self::PREFIX )
Constructor
$operator
$value
$mode
optional self::PREFIX sql( Cake\Database\ValueBinder $generator )
Converts the expression to its string representation
$generator
Cake\Database\ExpressionInterface::sql()
traverse( callable $callable )
Iterates 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.
$callable
Cake\Database\ExpressionInterface::traverse()
© 2005–2018 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.5/class-Cake.Database.Expression.UnaryExpression.html