Expression
class Expression extends BaseExpression
Defines the supported operators for arithmetic expressions.
Learn more: Arithmetic expressions
Methods
ExpressionComponent constructor.
Serializes to string.
Serializes to JSON.
Add.
Subtract.
Multiply.
Divide.
Modulo.
Equals.
Does not equal.
Less than.
Greater than.
Less than or equals.
Greater than or equals.
Is in (a list of strings).
Is not in (a list of strings).
Logical AND operator
Logical OR operator
Creates an instance of Expression from a raw string.
Details
__construct($exprUserVariableName)
ExpressionComponent constructor.
string
__toString()
Serializes to string.
mixed
jsonSerialize()
Serializes to JSON.
ExpressionOperator
add()
Add.
ExpressionOperator
subtract()
Subtract.
ExpressionOperator
multiply()
Multiply.
ExpressionOperator
divide()
Divide.
ExpressionOperator
modulo()
Modulo.
ExpressionOperator
equal()
Equals.
ExpressionOperator
notEqual()
Does not equal.
ExpressionOperator
lessThan()
Less than.
ExpressionOperator
greaterThan()
Greater than.
ExpressionOperator
lessThanOrEqual()
Less than or equals.
ExpressionOperator
greaterThanOrEqual()
Greater than or equals.
ExpressionOperator
in()
Is in (a list of strings).
ExpressionOperator
notIn()
Is not in (a list of strings).
ExpressionOperator
and_()
Logical AND operator
'&&'
ExpressionOperator
or_()
Logical OR operator
'||'
static Expression
expression(string $expression)
Creates an instance of Expression from a raw string.