diff --git a/Application/Controller/orderOverviewPdfGenerator.php b/Application/Controller/orderOverviewPdfGenerator.php index 61ead4a..9749cd8 100644 --- a/Application/Controller/orderOverviewPdfGenerator.php +++ b/Application/Controller/orderOverviewPdfGenerator.php @@ -36,19 +36,17 @@ class orderOverviewPdfGenerator */ public function generatePdf(Order $order, $sFilename, $iSelLang = 0, $target = 'I') { - $Pdf= $this->getPdfClass($order); + $Pdf= $this->getPdfClass(); $Pdf->setOrder($order); $Pdf->genPdf($sFilename, $iSelLang, $target); } /** - * @param Order $order - * * @return pdfdocumentsOrderInterface * @throws noPdfHandlerFoundException */ - public function getPdfClass(Order $order) + public function getPdfClass() { $requestedType = Registry::getRequest()->getRequestParameter('pdftype'); diff --git a/Application/Model/Exceptions/noBaseObjectSetException.php b/Application/Model/Exceptions/noBaseObjectSetException.php index 3abc4db..590dd6d 100644 --- a/Application/Model/Exceptions/noBaseObjectSetException.php +++ b/Application/Model/Exceptions/noBaseObjectSetException.php @@ -15,9 +15,11 @@ namespace D3\PdfDocuments\Application\Model\Exceptions; +use Exception; + class noBaseObjectSetException extends pdfGeneratorExceptionAbstract { - public function __construct( $sMessage = "no base object (e.g. order) for pdf generator set", $iCode = 0, \Exception $previous = null ) + public function __construct( $sMessage = "no base object (e.g. order) for pdf generator set", $iCode = 0, Exception $previous = null ) { parent::__construct( $sMessage, $iCode, $previous ); } diff --git a/Application/Model/Exceptions/noPdfHandlerFoundException.php b/Application/Model/Exceptions/noPdfHandlerFoundException.php index 8adc14c..d3eed51 100644 --- a/Application/Model/Exceptions/noPdfHandlerFoundException.php +++ b/Application/Model/Exceptions/noPdfHandlerFoundException.php @@ -15,6 +15,8 @@ namespace D3\PdfDocuments\Application\Model\Exceptions; +use Exception; + class noPdfHandlerFoundException extends pdfGeneratorExceptionAbstract { /** @@ -23,9 +25,9 @@ class noPdfHandlerFoundException extends pdfGeneratorExceptionAbstract * @param $requestId * @param string $sMessage * @param int $iCode - * @param \Exception|null $previous + * @param Exception|null $previous */ - public function __construct( $requestId, $sMessage = "no pdf handler defined for given request id", $iCode = 0, \Exception $previous = null ) + public function __construct( $requestId, $sMessage = "no pdf handler defined for given request id", $iCode = 0, Exception $previous = null ) { $sMessage .= ' "'.$requestId.'"'; parent::__construct( $sMessage, $iCode, $previous ); diff --git a/Application/Model/Exceptions/wrongPdfGeneratorInterface.php b/Application/Model/Exceptions/wrongPdfGeneratorInterface.php index 8b2572e..2d05ae5 100644 --- a/Application/Model/Exceptions/wrongPdfGeneratorInterface.php +++ b/Application/Model/Exceptions/wrongPdfGeneratorInterface.php @@ -15,9 +15,11 @@ namespace D3\PdfDocuments\Application\Model\Exceptions; +use Exception; + class wrongPdfGeneratorInterface extends pdfGeneratorExceptionAbstract { - public function __construct( $requiredInterface, $sMessage = "generator class doesn't fulfilled the interface", $iCode = 0, \Exception $previous = null ) { + public function __construct( $requiredInterface, $sMessage = "generator class doesn't fulfilled the interface", $iCode = 0, Exception $previous = null ) { $sMessage .= $requiredInterface;