<?php

namespace App\Classes\Modules\Imports\Services;

use Maatwebsite\Excel\Concerns\WithHeadingRow;
use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\ToCollection;


class GenericImport implements ToCollection, WithHeadingRow
{
    function headingRow(): int { return 1; }

    public $rows;

    /**
     * @param Collection $collection
     */
    public function collection(Collection $collection)
    {
        $this->rows = $collection;
    }
}
