Comparison
in package
Expression class for DQL comparison expressions.
Tags
Table of Contents
- EQ = '='
- GT = '>'
- GTE = '>='
- LT = '<'
- LTE = '<='
- NEQ = '<>'
- $leftExpr : mixed
- $operator : string
- $rightExpr : mixed
- __construct() : mixed
- Creates a comparison expression with the given arguments.
- __toString() : string
- getLeftExpr() : mixed
- getOperator() : string
- getRightExpr() : mixed
Constants
EQ
public
mixed
EQ
= '='
GT
public
mixed
GT
= '>'
GTE
public
mixed
GTE
= '>='
LT
public
mixed
LT
= '<'
LTE
public
mixed
LTE
= '<='
NEQ
public
mixed
NEQ
= '<>'
Properties
$leftExpr
protected
mixed
$leftExpr
$operator
protected
string
$operator
$rightExpr
protected
mixed
$rightExpr
Methods
__construct()
Creates a comparison expression with the given arguments.
public
__construct(mixed $leftExpr, string $operator, mixed $rightExpr) : mixed
Parameters
- $leftExpr : mixed
- $operator : string
- $rightExpr : mixed
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getLeftExpr()
public
getLeftExpr() : mixed
Return values
mixed —getOperator()
public
getOperator() : string
Return values
string —getRightExpr()
public
getRightExpr() : mixed