UVar
class UVar extends Expression
Represents a user variable expression component.
Learn more: User variables
Methods
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.
Named UVar constructor.
Details
__construct(string|Variable $userVariableName)
UVar 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.
static UVar
uVar(string $userVariableName)
Named UVar constructor.