<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/24 0024
 * Time: 13:38
 */

namespace App\Exports;


use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\Exportable;

class InquireExport implements FromArray
{
    use Exportable;

    public $dataList;

    public function __construct(array  $dataList)
    {
        $this->dataList =$dataList;
    }

    public function array(): array
    {
        return $this->dataList;
    }
}