src/Event/PrepareOrderExportEvent.php
public function addExportData($key, $data = null): PrepareOrderExportEvent
    {
        if (is_array($key)) {
            $this->exportData = array_merge($this->exportData, $key);
        } else {
            $this->exportData[$key] = $data;
        }

        return $this;
    }
public function addExportData($key, $data = null): PrepareOrderExportEvent
    {
        if (is_array($key)) {
            $this->exportData = array_merge($this->exportData, $key);
        } else {
            $this->exportData[$key] = $data;
        }

        return $this;
    }
public function addExportData ( $ key , $ data = null ) : PrepareOrderExportEvent { if ( is_array ( $ key ) ) { $ this -> exportData = array_merge ( $ this -> exportData , $ key ) ; } else { $ this -> exportData [ $ key ] = $ data ; } return $ this ; }
Adds an exportable data.
@param string|array $key
@param null $data
@return PrepareOrderExportEvent
Adds an exportable data .