25 lines
613 B
PHP
25 lines
613 B
PHP
<?php
|
|
|
|
namespace App\Exports;
|
|
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
|
|
class GaSimulationExport implements WithMultipleSheets
|
|
{
|
|
protected array $gaResult;
|
|
|
|
public function __construct(array $gaResult)
|
|
{
|
|
$this->gaResult = $gaResult;
|
|
}
|
|
|
|
public function sheets(): array
|
|
{
|
|
return [
|
|
'1. Ringkasan & Parameter' => new GaSummarySheet($this->gaResult),
|
|
'2. Matriks Generasi awal (Gen 0)' => new GaGenerationSheet($this->gaResult, 0),
|
|
'3. Matriks Generasi Final' => new GaGenerationSheet($this->gaResult, 'final'),
|
|
];
|
|
}
|
|
}
|