Files
investbrain/app/Exports/BackupExport.php
T
hackerESQ df1071d628 wip
2024-08-29 23:36:44 -05:00

32 lines
684 B
PHP

<?php
namespace App\Exports;
use App\Exports\Sheets\DailyChangesSheet;
use App\Exports\Sheets\PortfoliosSheet;
use App\Exports\Sheets\TransactionsSheet;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class BackupExport implements WithMultipleSheets
{
use Exportable;
public function __construct(
public bool $empty = false
)
{ }
/**
* @return array
*/
public function sheets(): array
{
return [
new PortfoliosSheet($this->empty),
new TransactionsSheet($this->empty),
new DailyChangesSheet($this->empty)
];
}
}