/** * Config instance setter * * @param Mage_Paypal_Model_Config $instace * @param int $storeId */ public function setConfig(Ebcomm_PaypalMx_Model_Config $instace, $storeId = null) { $this->_config = $instace; if (null !== $storeId) { $this->_config->setStoreId($storeId); } return $this; }