protected function enrichColumn($key, ModelExportColumnDataInterface $column, array &$columns)
    {
        // Check if we can enrich, if we must.
        if ( ! isset($this->info->attributes[ $key ])) {

            // if the column data is fully set, no need to enrich
            if ($this->isExportColumnDataComplete($column)) {
                $columns[ $key ] = $column;
                return;
            }

            throw new UnexpectedValueException(
                "Incomplete data for for export column key that does not match known model attribute or relation method. "
                . "Requires at least 'source' value."
            );
        }


        $attributeColumnInfo = $this->makeModelExportColumnDataForAttributeData($this->info->attributes[ $key ]);

        $attributeColumnInfo->merge($column);

        $columns[ $key ] = $attributeColumnInfo;
    }
protected function enrichColumn($key, ModelExportColumnDataInterface $column, array &$columns)
    {
        // Check if we can enrich, if we must.
        if ( ! isset($this->info->attributes[ $key ])) {

            // if the column data is fully set, no need to enrich
            if ($this->isExportColumnDataComplete($column)) {
                $columns[ $key ] = $column;
                return;
            }

            throw new UnexpectedValueException(
                "Incomplete data for for export column key that does not match known model attribute or relation method. "
                . "Requires at least 'source' value."
            );
        }


        $attributeColumnInfo = $this->makeModelExportColumnDataForAttributeData($this->info->attributes[ $key ]);

        $attributeColumnInfo->merge($column);

        $columns[ $key ] = $attributeColumnInfo;
    }
protected function enrichColumn ( $ key , ModelExportColumnDataInterface $ column , array & $ columns ) { // Check if we can enrich, if we must. if ( ! isset ( $ this -> info -> attributes [ $ key ] ) ) { // if the column data is fully set, no need to enrich if ( $ this -> isExportColumnDataComplete ( $ column ) ) { $ columns [ $ key ] = $ column ; return ; } throw new UnexpectedValueException ( "Incomplete data for for export column key that does not match known model attribute or relation method. " . "Requires at least 'source' value." ) ; } $ attributeColumnInfo = $ this -> makeModelExportColumnDataForAttributeData ( $ this -> info -> attributes [ $ key ] ) ; $ attributeColumnInfo -> merge ( $ column ) ; $ columns [ $ key ] = $ attributeColumnInfo ; }
Enriches a single export column and saves the data.

@param ModelExportColumnDataInterface $column
@param string                       $key
@param array                        $columns     by reference, data array to build, updated with enriched data
Enriches a single export column and saves the data .