Beispiel #1
0
 public function testLeftRightOpObjects()
 {
     $leftOp = new UnaryExpr('IS NOT NULLL', 'my_var');
     $rightOp = new BasicExpr('my_other_var');
     $expr = new BinaryExpr($leftOp, 'AND', $rightOp);
     /* because we extend the basic expression the operand in the
      * basic expression is our left operand
      */
     $this->assertEquals($leftOp, $expr->getOperand());
     $this->assertEquals($leftOp, $expr->getLeftOperand());
     $this->assertEquals($rightOp, $expr->getRightOperand());
 }
Beispiel #2
0
 /**
  * Alias operand for better readability. The domain member is always the 
  * operand on the left hand side of a binary expression
  * 
  * @return	string
  */
 public function getMember()
 {
     return parent::getLeftOperand();
 }