Model/Action/OrderActionFactory.php
public function createAction($action)
    {
        $method = "get" . ucfirst($action) . "Action";

        if (!method_exists($this, $method)) {
            /** @var \OxidEsales\PayPalModule\Core\Exception\PayPalInvalidActionException $exception */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalInvalidActionException::class);
            throw $exception;
        }

        return $this->$method();
    }
public function createAction($action)
    {
        $method = "get" . ucfirst($action) . "Action";

        if (!method_exists($this, $method)) {
            /** @var \OxidEsales\PayPalModule\Core\Exception\PayPalInvalidActionException $exception */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalInvalidActionException::class);
            throw $exception;
        }

        return $this->$method();
    }
public function createAction ( $ action ) { $ method = "get" . ucfirst ( $ action ) . "Action" ; if ( ! method_exists ( $ this , $ method ) ) { /** @var \OxidEsales\PayPalModule\Core\Exception\PayPalInvalidActionException $exception */ $ exception = oxNew ( \ OxidEsales \ PayPalModule \ Core \ Exception \ PayPalInvalidActionException :: class ) ; throw $ exception ; } return $ this -> $ method ( ) ; }
Creates action object by given action name.

@param string $action

@return object

@throws \OxidEsales\PayPalModule\Core\Exception\PayPalInvalidActionException
Creates action object by given action name .