* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Import\File\DataRow; use PrestaShop\PrestaShop\Core\Import\File\DataCell\DataCellInterface; /** * Class DataRowPresenter defines a data row presenter. */ final class DataRowPresenter implements DataRowPresenterInterface { /** * {@inheritdoc} */ public function present(DataRowInterface $dataRow) { $presentedRow = []; /** @var DataCellInterface $dataCell */ foreach ($dataRow as $dataCell) { $presentedRow[] = [ 'value' => $dataCell->getValue(), ]; } return $presentedRow; } }