Elcodi\Plugin\CustomShippingBundle\Provider\ShippingRangesProvider::isShippingWeightRangeSatisfiedByCart PHP Method

isShippingWeightRangeSatisfiedByCart() private method

Given ShippingWeightRange is satisfied by a cart
private isShippingWeightRangeSatisfiedByCart ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface $shippingRange ) : boolean
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
$shippingRange Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Carrier Range
return boolean ShippingRange is satisfied by cart
    private function isShippingWeightRangeSatisfiedByCart(CartInterface $cart, ShippingRangeInterface $shippingRange)
    {
        $cartWeight = $cart->getWeight();
        $cartRangeFromWeight = $shippingRange->getFromWeight();
        $cartRangeToWeight = $shippingRange->getToWeight();
        return $this->isShippingRangeZonesSatisfiedByCart($cart, $shippingRange) && is_numeric($cartRangeFromWeight) && is_numeric($cartRangeToWeight) && $cartRangeFromWeight >= 0 && $cartRangeToWeight >= 0 && $cartWeight >= $cartRangeFromWeight && $cartWeight < $cartRangeToWeight;
    }