$groups[$groupId] =
$group;
$options =
$group->
getOptions();
if ($options === null
) { $options =
new PropertyGroupOptionCollection();
$group->
setOptions($options);
} $options->
add($option);
$options->
add($option);
$option->
setConfiguratorSetting($setting);
} return $groups;
} /**
* @param array<string, PropertyGroupEntity>|null $groups
*/
private function sortSettings(?array
$groups, SalesChannelProductEntity
$product): PropertyGroupCollection
{ if (!
$groups) {