private function translateRow(&$row)
    {
        $new_row = [];

        // Translate incoming data via mapping array.
        foreach ($row as $key => $value) {
            if (array_has($this->config['mapping'], $key)) {
                $new_row[array_get($this->config['mapping'], $key)] = $value;
            }
        }

        // Replace with translated row.
        $row = $new_row;
    }
private function translateRow(&$row)
    {
        $new_row = [];

        // Translate incoming data via mapping array.
        foreach ($row as $key => $value) {
            if (array_has($this->config['mapping'], $key)) {
                $new_row[array_get($this->config['mapping'], $key)] = $value;
            }
        }

        // Replace with translated row.
        $row = $new_row;
    }
private function translateRow ( & $ row ) { $ new_row = [ ] ; // Translate incoming data via mapping array. foreach ( $ row as $ key => $ value ) { if ( array_has ( $ this -> config [ 'mapping' ] , $ key ) ) { $ new_row [ array_get ( $ this -> config [ 'mapping' ] , $ key ) ] = $ value ; } } // Replace with translated row. $ row = $ new_row ; }
Translate the row using the configured mapping rules.

@param array &$row

@return void
Translate the row using the configured mapping rules .