Model/OrderManager.php
protected function calculateOrderStatus($orderPayment, $order)
    {
        $orderPaymentStatusCalculator = $this->getOrderPaymentStatusCalculator();
        $orderPaymentStatusCalculator->setOrderPayment($orderPayment);
        $orderPaymentStatusCalculator->setOrder($order);

        $newOrderStatus = $orderPaymentStatusCalculator->getStatus();

        return $newOrderStatus;
    }
protected function calculateOrderStatus($orderPayment, $order)
    {
        $orderPaymentStatusCalculator = $this->getOrderPaymentStatusCalculator();
        $orderPaymentStatusCalculator->setOrderPayment($orderPayment);
        $orderPaymentStatusCalculator->setOrder($order);

        $newOrderStatus = $orderPaymentStatusCalculator->getStatus();

        return $newOrderStatus;
    }
protected function calculateOrderStatus ( $ orderPayment , $ order ) { $ orderPaymentStatusCalculator = $ this -> getOrderPaymentStatusCalculator ( ) ; $ orderPaymentStatusCalculator -> setOrderPayment ( $ orderPayment ) ; $ orderPaymentStatusCalculator -> setOrder ( $ order ) ; $ newOrderStatus = $ orderPaymentStatusCalculator -> getStatus ( ) ; return $ newOrderStatus ; }
Wrapper for order payment calculator.

@param \OxidEsales\PayPalModule\Model\OrderPayment $orderPayment Order payment to set to calculator.
@param \OxidEsales\PayPalModule\Model\PayPalOrder  $order        Order to be set to validator.

@return null|string
Wrapper for order payment calculator .