Components/Bundle/ShopwareAdapter/CommandHandler/HandleBundleCommandHandler.php
private function getCustomerGroups(Bundle $bundle)
    {
        $result = [];
        foreach ($bundle->getPrices() as $price) {
            $group = $this->getCustomerGroupFromPrice($price);

            if (null === $group) {
                continue;
            }

            $result[$group->getKey()] = $group;
        }

        return new ArrayCollection($result);
    }
private function getCustomerGroups(Bundle $bundle)
    {
        $result = [];
        foreach ($bundle->getPrices() as $price) {
            $group = $this->getCustomerGroupFromPrice($price);

            if (null === $group) {
                continue;
            }

            $result[$group->getKey()] = $group;
        }

        return new ArrayCollection($result);
    }
@param Bundle $bundle

@return ArrayCollection