9 use Magento\Quote\Api\Data\ShippingMethodInterfaceFactory;
19 private $shippingMethodFactory;
24 private $carrierFinder;
32 ShippingMethodInterfaceFactory $shippingMethodFactory,
35 $this->shippingMethodFactory = $shippingMethodFactory;
36 $this->carrierFinder = $carrierFinder;
47 ->setMethodTitle(
__(
'Cheapest price'))
48 ->setAvailable($this->areShippingMethodsAvailable(
$address));
60 $carriersForAddress = $this->carrierFinder->getCarriersForCustomerAddress(
$address);
61 return !empty($carriersForAddress);
__construct(ShippingMethodInterfaceFactory $shippingMethodFactory, CarrierFinder $carrierFinder)