Model/OrderManager.php
public function getOrder()
    {
        if ($this->order === null) {
            $orderPayment = $this->getOrderPayment();
            $order = $this->getOrderFromPayment($orderPayment);
            $this->setOrder($order);
        }

        return $this->order;
    }
public function getOrder()
    {
        if ($this->order === null) {
            $orderPayment = $this->getOrderPayment();
            $order = $this->getOrderFromPayment($orderPayment);
            $this->setOrder($order);
        }

        return $this->order;
    }
public function getOrder ( ) { if ( $ this -> order === null ) { $ orderPayment = $ this -> getOrderPayment ( ) ; $ order = $ this -> getOrderFromPayment ( $ orderPayment ) ; $ this -> setOrder ( $ order ) ; } return $ this -> order ; }
Create object \OxidEsales\PayPalModule\Model\PayPalOrder.
If Order is not set, create order from Order Payment.

@return \OxidEsales\PayPalModule\Model\PayPalOrder
Create object \ OxidEsales \ PayPalModule \ Model \ PayPalOrder . If Order is not set create order from Order Payment .