penjadwalan-ga/app/Exports/GaPresentationExport.php

28 lines
711 B
PHP

<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class GaPresentationExport implements WithMultipleSheets
{
protected array $simData;
public function __construct(array $simData)
{
$this->simData = $simData;
}
public function sheets(): array
{
return [
new GaPresentationDatasetSheet($this->simData),
new GaPresentationFitnessSheet($this->simData),
new GaPresentationSelectionSheet($this->simData),
new GaPresentationCrossoverSheet($this->simData),
new GaPresentationMutationSheet($this->simData),
new GaPresentationNewGenSheet($this->simData),
];
}
}