year = $year; $this->projects = $projects; $this->taxInfo = $taxInfo; } public function sheets(): array { $sheets = []; foreach ($this->projects as $project) { $sheets[] = new ResearchProjectDetailSheetExport($this->year, $project, $this->taxInfo); } return $sheets; } }