| Code Coverage
| Classes and Traits | Functions and Methods | Lines
Total | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 2 | CRAP | 0.00% covered (danger) | 0.00% | 0 / 3
GoodsNeateningExcelExport | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 2 | 6.00 | 0.00% covered (danger) | 0.00% | 0 / 3
__construct | 0.00% covered (danger) | 0.00% | 0 / 1 | 2.00 | 0.00% covered (danger) | 0.00% | 0 / 2
collection | 0.00% covered (danger) | 0.00% | 0 / 1 | 2.00 | 0.00% covered (danger) | 0.00% | 0 / 1

1 | <?php
2 |
3 | namespace App\Exports;
4 |
5 | use App\User;
6 | use Illuminate\Support\Collection;
7 | use Maatwebsite\Excel\Concerns\FromCollection;
8 |
9 | class GoodsNeateningExcelExport implements FromCollection
10 | {
11 | private $data;
12 | public function __construct($data)
13 | {
14 | $this->data=new Collection($data);
15 | }
16 |
17 | /**
18 | * @return \Illuminate\Support\Collection
19 | */
20 | public function collection()
21 | {
22 | return $this->data;
23 | }
24 | }