/**
* @param array<string, mixed> $row
*/
private function ensureUserRequiredFields(array &
$row, Config
$config): void
{ $mappings =
$config->
getMapping()->
getElements();
foreach ($mappings as $mapping) { $csvKey =
$mapping->
getMappedKey();
if (!
$mapping->
isRequiredByUser()) { continue;
} if (!\
array_key_exists($csvKey,
$row) ||
empty($row[$csvKey])) { throw ImportExportException::
requiredByUser($csvKey);
} } } /**
* @param array<string, mixed> $overallResults
*
* @return array<string, mixed>
*/