public function editCartLine(
        CartLineInterface $cartLine,
        PurchasableInterface $purchasable,
        $quantity
    ) {
        $cart = $cartLine->getCart();

        if (!($cart instanceof CartInterface)) {
            return $this;
        }

        $cartLine->setPurchasable($purchasable);
        $this->setCartLineQuantity($cartLine, $quantity);

        return $this;
    }