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
 /**
  * Merely improves readablity. The value of a domain expression is always
  * the operand on the right side.
  * 
  * @return	mixed
  */
 public function getValue()
 {
     return parent::getRightOperand();
 }