> */ private Collection $rows; public function __construct() { $this->rows = collect(); } public function collection(Collection $rows): void { $this->rows = $rows->map( fn (Collection $row): array => $row->toArray(), ); } /** * @return Collection> */ public function getRows(): Collection { return $this->rows; } }