/**
* @param Config $config
*
* @return Config
*/
private function getConfig(ImportExportProfileEntity
$profileEntity, array
$config): array
{ $parameters =
$profileEntity->
getConfig();
$parameters['delimiter'
] =
$profileEntity->
getDelimiter();
$parameters['enclosure'
] =
$profileEntity->
getEnclosure();
$parameters['sourceEntity'
] =
$profileEntity->
getSourceEntity();
$parameters['fileType'
] =
$profileEntity->
getFileType();
$parameters['profileName'
] =
$profileEntity->
getName();
return [ 'mapping' =>
$config['mapping'
] ??
$profileEntity->
getMapping(),
'updateBy' =>
$config['updateBy'
] ??
$profileEntity->
getUpdateBy(),
'parameters' =>
array_merge($parameters,
$config['parameters'
] ??
[]),
];
}}