Storm\Core\Object\Expressions\Expression::BinaryOperation PHP Метод

BinaryOperation() закрытый публичный статический Метод

final public static BinaryOperation ( Expression $LeftOperandExpression, $Operator, Expression $RightOperandExpression ) : BinaryOperationExpression
$LeftOperandExpression Expression
$RightOperandExpression Expression
Результат BinaryOperationExpression
    public static final function BinaryOperation(Expression $LeftOperandExpression, $Operator, Expression $RightOperandExpression)
    {
        return new BinaryOperationExpression($LeftOperandExpression, $Operator, $RightOperandExpression);
    }

Usage Example

Пример #1
0
 public function __construct(Object\PropertyData $PropertyData)
 {
     parent::__construct($PropertyData->GetEntityType());
     foreach ($PropertyData as $PropertyIdentifier => $Value) {
         $Property = $PropertyData->GetProperty($PropertyIdentifier);
         $this->AddPredicate(Expression::BinaryOperation(Expression::Property($Property), Operators\Binary::Identity, Expression::Constant($Value)));
     }
 }
All Usage Examples Of Storm\Core\Object\Expressions\Expression::BinaryOperation