| 1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- namespace App\Exports;
-
- use App\Compound;
- use Maatwebsite\Excel\Concerns\Exportable;
- use Maatwebsite\Excel\Concerns\WithMultipleSheets;
-
- class CompoundBacklogExport implements WithMultipleSheets
- {
- use Exportable;
-
- private $data_, $year_, $com_price_, $com_sheet_;
-
- public function __construct($data, $year, $com_price, $com_sheet)
- {
- $this->data_ = $data;
- $this->year_ = $year;
- $this->com_price_ = $com_price;
- $this->com_sheet_ = $com_sheet;
- }
-
- /**
- * @return array
- */
- public function sheets(): array
- {
- $sheets = [];
- $sheets[] = new CompoundBacklogSheet($this->data_, $this->year_, $this->com_price_, $this->com_sheet_);
- return $sheets;
- }
- }
|