protected function getResourceExportType(PropertyMappingConfigurationInterface $configuration = null)
{
if ($configuration === null) {
return self::DEFAULT_RESOURCE_EXPORT_TYPE;
}
$exportType = $configuration->getConfigurationValue(ArrayConverter::class, self::CONFIGURATION_RESOURCE_EXPORT_TYPE);
if ($exportType === null) {
return self::DEFAULT_RESOURCE_EXPORT_TYPE;
} elseif (!is_string($exportType)) {
throw new InvalidPropertyMappingConfigurationException(sprintf('RESOURCE_EXPORT_TYPE must be of type string, "%s" given', is_object($exportType) ? get_class($exportType) : gettype($exportType)), 1404313373);
}
return $exportType;
}