WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface::getCalculator PHP Method

getCalculator() public method

public getCalculator ( ) : string
return string
    public function getCalculator() : string;

Usage Example

 /**
  * Returns the method's calculator instance
  *
  * @param ShippingMethodInterface $shippingMethod
  *
  * @return \WellCommerce\Bundle\ShippingBundle\Calculator\ShippingMethodCalculatorInterface
  */
 protected function getCalculator(ShippingMethodInterface $shippingMethod)
 {
     $calculator = $shippingMethod->getCalculator();
     if (!$this->shippingMethodCalculatorCollection->has($calculator)) {
         throw new CalculatorNotFoundException($calculator);
     }
     return $this->shippingMethodCalculatorCollection->get($calculator);
 }
All Usage Examples Of WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface::getCalculator