PdfExportHook (phpDoc): Add possible param type hints

This commit is contained in:
Sukhwinder Dhillon 2023-09-01 13:06:12 +02:00
parent a9b0e1e2d2
commit 75a607fe1f

View File

@ -3,6 +3,8 @@
namespace Icinga\Application\Hook;
use Icinga\Module\Pdfexport\PrintableHtmlDocument;
/**
* Base class for the PDF Export Hook
*/
@ -18,8 +20,8 @@ abstract class PdfexportHook
/**
* Render the specified HTML to PDF and stream it to the client
*
* @param string $html The HTML to render to PDF
* @param string $filename The filename for the generated PDF
* @param string|PrintableHtmlDocument $html The HTML to render to PDF
* @param string $filename The filename for the generated PDF
*/
abstract public function streamPdfFromHtml($html, $filename);
abstract public function streamPdfFromHtml($html, string $filename);
}