$options =
array_map(fn ($option) =>
sprintf('%s|%s',
$groupName,
$option),
$options);
$result[] =
$options;
} return $result;
} private function throwExceptionFailedParsingVariants(string
$variantsString): void
{ throw new ProcessingException(sprintf( 'Failed parsing variants from string "%s", valid format is: "size: L, XL, | color: Green, White"',
$variantsString ));
} /**
* @param list<array<string>> $variants
*
* @return CombinationPayload
*/
private function getCombinationsPayload(array
$variants, string
$parentId, string
$productNumber): array
{