Storm\Drivers\Base\Relational\Expressions\Expression::BinaryOperation PHP Method

BinaryOperation() public static method

public static BinaryOperation ( parent $LeftOperandExpression, $Operator, parent $RightOperandExpression ) : BinaryOperationExpression
$LeftOperandExpression parent
$RightOperandExpression parent
return BinaryOperationExpression
    public static function BinaryOperation(parent $LeftOperandExpression, $Operator, parent $RightOperandExpression)
    {
        return new BinaryOperationExpression($LeftOperandExpression, $Operator, $RightOperandExpression);
    }

Usage Example

 public function __construct(ColumnData $ColumnData)
 {
     $ConstraintExpressions = [];
     foreach ($ColumnData as $ColumnIdentifier => $Value) {
         $Column = $ColumnData->GetColumn($ColumnIdentifier);
         $ConstraintExpressions[] = Expression::BinaryOperation(Expression::Column($Column), Binary::Equality, Expression::PersistData($Column, Expression::Constant($Value)));
     }
     parent::__construct($ConstraintExpressions, Binary::LogicalAnd);
 }
All Usage Examples Of Storm\Drivers\Base\Relational\Expressions\Expression::BinaryOperation