getOption(static::OPTION_DELIMITER); $valueMapper = $this->getOption(static::OPTION_VALUE_MAPPER); $values = explode($delimiter, $value); $this->report = common_report_Report::createInfo(); foreach ($values as $value) { if ($valueMapper instanceof ImportValueMapperInterface) { $valueToBeMapped = $this->mapValueThroughMapper($valueMapper, $value); if (!is_null($valueToBeMapped)) { $mapValues[] = $valueToBeMapped; } } else { $mapValues[] = $value; } } return $mapValues; } /** * @inheritdoc */ public function getReport() { return $this->report; } /** * @param ImportValueMapperInterface $valueMapper * @param string $value * @return mixed * @throws \common_exception_Error */ protected function mapValueThroughMapper($valueMapper, $value) { try { $returnValue = $valueMapper->map($value); $this->report->add($valueMapper->getReport()); return $returnValue; } catch (RdsResourceNotFoundException $e) { $this->report->add(common_report_Report::createFailure($e->getMessage())); $this->logWarning($e->getMessage()); } } }