mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Clarify that streamPdfFromHtml never returns
This commit also includes phpdoc formating changes
This commit is contained in:
parent
0688c2ab8a
commit
cfe57fc043
1 changed files with 6 additions and 3 deletions
|
|
@ -7,6 +7,7 @@ namespace Icinga\Application\Hook;
|
|||
|
||||
use Icinga\Application\Hook;
|
||||
use Icinga\Application\Logger;
|
||||
use ipl\Html\ValidHtml;
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
|
|
@ -44,15 +45,17 @@ abstract class PdfexportHook
|
|||
/**
|
||||
* Get whether PDF export is supported
|
||||
*
|
||||
* @return bool
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function isSupported();
|
||||
|
||||
/**
|
||||
* 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 ValidHtml $html The HTML to render to PDF
|
||||
* @param string $filename The filename for the generated PDF
|
||||
*
|
||||
* @return never
|
||||
*/
|
||||
abstract public function streamPdfFromHtml($html, $filename);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue