public function getDeliveryModuleInstance()
    {
        if (null === $deliveryModule = ModuleQuery::create()->findPk($this->getDeliveryModuleId())) {
            throw new TheliaProcessException("Delivery module ID=" . $this->getDeliveryModuleId() . " was not found.");
        }

        return $deliveryModule->createInstance();
    }
public function getDeliveryModuleInstance()
    {
        if (null === $deliveryModule = ModuleQuery::create()->findPk($this->getDeliveryModuleId())) {
            throw new TheliaProcessException("Delivery module ID=" . $this->getDeliveryModuleId() . " was not found.");
        }

        return $deliveryModule->createInstance();
    }
public function getDeliveryModuleInstance ( ) { if ( null === $ deliveryModule = ModuleQuery :: create ( ) -> findPk ( $ this -> getDeliveryModuleId ( ) ) ) { throw new TheliaProcessException ( "Delivery module ID=" . $ this -> getDeliveryModuleId ( ) . " was not found." ) ; } return $ deliveryModule -> createInstance ( ) ; }
Get an instance of the delivery module

@return \Thelia\Module\DeliveryModuleInterface
@throws TheliaProcessException
Get an instance of the delivery module