filename(); $filepath = ReportStorage::customFilepath($this->study, $filename); if (ReportStorage::exists($this->study, $filename)) { return $filepath; } $html = $this->report->getContent(); // todo: implement pdf generation file_put_contents(ReportStorage::abspath($filepath), $html); return $filepath; } protected function getExtension(): string { return ExportFormat::Pdf->value; } }