$columns * @param list> $rows kunci = 'key' kolom * @param int|null $total jumlah baris sebenarnya (bila lebih banyak dari $rows) * @param list $summary baris keterangan (mis. "Periode: 2020/2021 Ganjil", "Jumlah: 120 mahasiswa") */ public function __construct( public array $columns, public array $rows, public ?int $total = null, public array $summary = [], public ?string $note = null, ) {} public function count(): int { return $this->total ?? count($this->rows); } public function truncated(): bool { return $this->total !== null && $this->total > count($this->rows); } }