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

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

@return string
Call - back for arithmetic expression @param ExpressionType $expressionType The type of arithmetic expression . @param string $left The left expression . @param string $right The left expression . @return string
public function onArithmeticExpression($expressionType, $left, $right)
    {
        switch($expressionType) {
	        case ExpressionType::MULTIPLY:
	            return $this->_prepareBinaryExpression(self::MULTIPLY, $left, $right);
	        case ExpressionType::DIVIDE:
	            return $this->_prepareBinaryExpression(self::DIVIDE, $left, $right);
	        case ExpressionType::MODULO:
	            return $this->_prepareBinaryExpression(self::MODULO, $left, $right);
	        case ExpressionType::ADD:
	            return $this->_prepareBinaryExpression(self::ADD, $left, $right);
	        case ExpressionType::SUBTRACT:
	            return $this->_prepareBinaryExpression(self::SUBTRACT, $left, $right);
	        default:
	            throw new \InvalidArgumentException('onArithmeticExpression');
        }
    }
public function onArithmeticExpression ( $ expressionType , $ left , $ right ) { switch ( $ expressionType ) { case ExpressionType :: MULTIPLY : return $ this -> _prepareBinaryExpression ( self :: MULTIPLY , $ left , $ right ) ; case ExpressionType :: DIVIDE : return $ this -> _prepareBinaryExpression ( self :: DIVIDE , $ left , $ right ) ; case ExpressionType :: MODULO : return $ this -> _prepareBinaryExpression ( self :: MODULO , $ left , $ right ) ; case ExpressionType :: ADD : return $ this -> _prepareBinaryExpression ( self :: ADD , $ left , $ right ) ; case ExpressionType :: SUBTRACT : return $ this -> _prepareBinaryExpression ( self :: SUBTRACT , $ left , $ right ) ; default : throw new \ InvalidArgumentException ( 'onArithmeticExpression' ) ; } }
Call-back for arithmetic expression
Call - back for arithmetic expression