Model/PaymentGateway.php
public function getPayPalOxOrder()
    {
        if (is_null($this->payPalOxOrder)) {
            $order = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            $order->loadPayPalOrder();
            $this->setPayPalOxOrder($order);
        }

        return $this->payPalOxOrder;
    }
public function getPayPalOxOrder()
    {
        if (is_null($this->payPalOxOrder)) {
            $order = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            $order->loadPayPalOrder();
            $this->setPayPalOxOrder($order);
        }

        return $this->payPalOxOrder;
    }
public function getPayPalOxOrder ( ) { if ( is_null ( $ this -> payPalOxOrder ) ) { $ order = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Order :: class ) ; $ order -> loadPayPalOrder ( ) ; $ this -> setPayPalOxOrder ( $ order ) ; } return $ this -> payPalOxOrder ; }
Gets order.

@return \OxidEsales\Eshop\Application\Model\Order
Gets order .