src/POData/Providers/Expression/PHPExpressionProvider.php
/**
     * Call-back for relational expression
     * 
     * @param ExpressionType $expressionType The type of relation expression
     * @param string         $left           The left expression
     * @param string         $right          The left expression
     * 
     * @return string
     */
Call-back for relational expression

@param ExpressionType $expressionType The type of relation expression
@param string         $left           The left expression
@param string         $right          The left expression

@return string
Call - back for relational expression @param ExpressionType $expressionType The type of relation expression @param string $left The left expression @param string $right The left expression @return string
public function onRelationalExpression($expressionType, $left, $right)
    {
        switch($expressionType) {
	        case ExpressionType::GREATERTHAN:
	            return $this->_prepareBinaryExpression(self::GREATER_THAN, $left, $right);
	        case ExpressionType::GREATERTHAN_OR_EQUAL:
	            return $this->_prepareBinaryExpression(self::GREATER_THAN_OR_EQUAL, $left, $right);
	        case ExpressionType::LESSTHAN:
	            return $this->_prepareBinaryExpression(self::LESS_THAN, $left, $right);
	        case ExpressionType::LESSTHAN_OR_EQUAL:
	            return $this->_prepareBinaryExpression(self::LESS_THAN_OR_EQUAL, $left, $right);
	        case ExpressionType::EQUAL:
	            return $this->_prepareBinaryExpression(self::EQUAL, $left, $right);
	        case ExpressionType::NOTEQUAL:
	            return $this->_prepareBinaryExpression(self::NOT_EQUAL, $left, $right);
	        default:
	            throw new \InvalidArgumentException('onArithmeticExpression');
        }
    }
public function onRelationalExpression ( $ expressionType , $ left , $ right ) { switch ( $ expressionType ) { case ExpressionType :: GREATERTHAN : return $ this -> _prepareBinaryExpression ( self :: GREATER_THAN , $ left , $ right ) ; case ExpressionType :: GREATERTHAN_OR_EQUAL : return $ this -> _prepareBinaryExpression ( self :: GREATER_THAN_OR_EQUAL , $ left , $ right ) ; case ExpressionType :: LESSTHAN : return $ this -> _prepareBinaryExpression ( self :: LESS_THAN , $ left , $ right ) ; case ExpressionType :: LESSTHAN_OR_EQUAL : return $ this -> _prepareBinaryExpression ( self :: LESS_THAN_OR_EQUAL , $ left , $ right ) ; case ExpressionType :: EQUAL : return $ this -> _prepareBinaryExpression ( self :: EQUAL , $ left , $ right ) ; case ExpressionType :: NOTEQUAL : return $ this -> _prepareBinaryExpression ( self :: NOT_EQUAL , $ left , $ right ) ; default : throw new \ InvalidArgumentException ( 'onArithmeticExpression' ) ; } }
Call-back for relational expression
Call - back for relational expression