1 | <?php |
||
10 | class DataTablesExportHandler implements FromCollection, WithHeadings |
||
11 | { |
||
12 | use Exportable; |
||
13 | |||
14 | /** |
||
15 | * @var Collection |
||
16 | */ |
||
17 | protected $collection; |
||
18 | |||
19 | /** |
||
20 | * DataTablesExportHandler constructor. |
||
21 | * |
||
22 | * @param Collection $collection |
||
23 | */ |
||
24 | public function __construct(Collection $collection) |
||
28 | |||
29 | /** |
||
30 | * @return Collection |
||
31 | */ |
||
32 | public function collection() |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public function headings(): array |
||
49 | } |
||
50 |