protected function createMethod($code, $title, $price)
    {
        /** @var Mage_Shipping_Model_Rate_Result_Method $method */
        $method = Mage::getModel('shipping/rate_result_method');

        $method->setCarrier($this->_code);
        $method->setCarrierTitle($this->getConfigData('title'));

        $method->setMethod($code);
        $method->setMethodTitle($title);

        $method->setPrice($this->getFinalPriceWithHandlingFee($price));

        return $method;
    }
protected function createMethod($code, $title, $price)
    {
        /** @var Mage_Shipping_Model_Rate_Result_Method $method */
        $method = Mage::getModel('shipping/rate_result_method');

        $method->setCarrier($this->_code);
        $method->setCarrierTitle($this->getConfigData('title'));

        $method->setMethod($code);
        $method->setMethodTitle($title);

        $method->setPrice($this->getFinalPriceWithHandlingFee($price));

        return $method;
    }
protected function createMethod ( $ code , $ title , $ price ) { /** @var Mage_Shipping_Model_Rate_Result_Method $method */ $ method = Mage :: getModel ( 'shipping/rate_result_method' ) ; $ method -> setCarrier ( $ this -> _code ) ; $ method -> setCarrierTitle ( $ this -> getConfigData ( 'title' ) ) ; $ method -> setMethod ( $ code ) ; $ method -> setMethodTitle ( $ title ) ; $ method -> setPrice ( $ this -> getFinalPriceWithHandlingFee ( $ price ) ) ; return $ method ; }
Simplifies creating a new shipping method.

@param string $code
@param string $title
@param string $price
@return Mage_Shipping_Model_Rate_Result_Method
Simplifies creating a new shipping method .