exprValue = $exprUserVariableName; } /** * Internal expression builder. * * @param mixed $operator The operator to use for building the expression. * * @return ExpressionOperator */ protected function buildExpression($operator) { return new ExpressionOperator(new ExpressionComponent($this->exprValue, $operator)); } /** * Sets the right operand. * * @param $rightOperand * * @return Expression */ protected function setRightOperand($rightOperand) { $this->exprValue->setRightOperand($rightOperand); return new Expression($this->exprValue); } /** * Serializes to string. * * @return string */ public function __toString() { return ExpressionUtils::normalize($this->exprValue); } /** * Serializes to JSON. * * @return mixed */ public function jsonSerialize() { return $this->exprValue->jsonSerialize(); } }