Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 3 |
| GoodsNeateningExcelExport | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6.00 | |
0.00% |
0 / 3 |
| __construct | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| collection | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App\Exports; | |
| use App\User; | |
| use Illuminate\Support\Collection; | |
| use Maatwebsite\Excel\Concerns\FromCollection; | |
| class GoodsNeateningExcelExport implements FromCollection | |
| { | |
| private $data; | |
| public function __construct($data) | |
| { | |
| $this->data=new Collection($data); | |
| } | |
| /** | |
| * @return \Illuminate\Support\Collection | |
| */ | |
| public function collection() | |
| { | |
| return $this->data; | |
| } | |
| } |