<?php

namespace Ignite\Core\Models\Grid;

use Illuminate\Support\Collection;
use Illuminate\Support\LazyCollection;
use Yajra\DataTables\Services\DataTablesExportHandler as YajraDataTablesExportHandler;

class DataTablesExportHandler extends YajraDataTablesExportHandler
{
    /**
     * DataTablesExportHandler constructor.
     *
     * @param Collection $collection
     */
    public function __construct(Collection|LazyCollection|null $collection = null)
    {
        $this->collection = $collection ?? new Collection;
    }
}