public function isAddressDeliverable(AddressInterface $address, BasketInterface $basket)
    {
        $methods = $this->deliverySelector->getAvailableMethods($basket, $address);

        return \count($methods) > 0 ? true : false;
    }
public function isAddressDeliverable(AddressInterface $address, BasketInterface $basket)
    {
        $methods = $this->deliverySelector->getAvailableMethods($basket, $address);

        return \count($methods) > 0 ? true : false;
    }
public function isAddressDeliverable ( AddressInterface $ address , BasketInterface $ basket ) { $ methods = $ this -> deliverySelector -> getAvailableMethods ( $ basket , $ address ) ; return \ count ( $ methods ) > 0 ? true : false ; }
Returns if address can deliver the given basket.

@param AddressInterface $address A Sonata e-commerce address instance
@param BasketInterface  $basket  A Sonata e-commerce basket instance

@return bool
Returns if address can deliver the given basket .