Storm\Drivers\Base\Relational\Expressions\BinaryOperationExpression::GetOperator PHP Method

GetOperator() public method

public GetOperator ( )
    public function GetOperator()
    {
        return $this->Operator;
    }

Usage Example

 protected function OptimizeBinaryOperationExpression(BinaryOperationExpression $Expression)
 {
     $LeftOperand = $Expression->GetLeftOperandExpression();
     $RightOperand = $Expression->GetRightOperandExpression();
     if ($LeftOperand instanceof ReviveColumnExpression && $this->IsExpressionConstant($RightOperand)) {
         $this->OptimizeReviveColumnCompareConstantExpression($LeftOperand, $RightOperand);
     } else {
         if ($RightOperand instanceof ReviveColumnExpression && $this->IsExpressionConstant($LeftOperand)) {
             $this->OptimizeReviveColumnCompareConstantExpression($RightOperand, $LeftOperand);
         } else {
             return $Expression;
         }
     }
     return Expression::BinaryOperation($LeftOperand, $Expression->GetOperator(), $RightOperand);
 }
All Usage Examples Of Storm\Drivers\Base\Relational\Expressions\BinaryOperationExpression::GetOperator