From 04aeb4fa3a7ccef82dbb6c16e6d7e1663a1ff9d9 Mon Sep 17 00:00:00 2001 From: HorstOeko Date: Fri, 18 Aug 2023 04:59:52 +0200 Subject: [PATCH] Renamed ZugferdDocumentAbstractPdfBuilder to ZugferdDocumentPdfBuilderAbstract --- src/ZugferdDocumentPdfBuilder.php | 4 ++-- ...ilder.php => ZugferdDocumentPdfBuilderAbstract.php} | 10 +++++----- src/ZugferdDocumentPdfMerger.php | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) rename src/{ZugferdDocumentAbstractPdfBuilder.php => ZugferdDocumentPdfBuilderAbstract.php} (96%) diff --git a/src/ZugferdDocumentPdfBuilder.php b/src/ZugferdDocumentPdfBuilder.php index 2cf7cc6f..2af1d3f8 100644 --- a/src/ZugferdDocumentPdfBuilder.php +++ b/src/ZugferdDocumentPdfBuilder.php @@ -9,7 +9,7 @@ namespace horstoeko\zugferd; -use horstoeko\zugferd\ZugferdDocumentAbstractPdfBuilder; +use horstoeko\zugferd\ZugferdDocumentPdfBuilderAbstract; use horstoeko\zugferd\ZugferdDocumentBuilder; /** @@ -22,7 +22,7 @@ * @license https://opensource.org/licenses/MIT MIT * @link https://github.com/horstoeko/zugferd */ -class ZugferdDocumentPdfBuilder extends ZugferdDocumentAbstractPdfBuilder +class ZugferdDocumentPdfBuilder extends ZugferdDocumentPdfBuilderAbstract { /** * Internal reference to the xml builder instance diff --git a/src/ZugferdDocumentAbstractPdfBuilder.php b/src/ZugferdDocumentPdfBuilderAbstract.php similarity index 96% rename from src/ZugferdDocumentAbstractPdfBuilder.php rename to src/ZugferdDocumentPdfBuilderAbstract.php index 9a6bb0ae..9bd76b60 100644 --- a/src/ZugferdDocumentAbstractPdfBuilder.php +++ b/src/ZugferdDocumentPdfBuilderAbstract.php @@ -28,7 +28,7 @@ * @license https://opensource.org/licenses/MIT MIT * @link https://github.com/horstoeko/zugferd */ -abstract class ZugferdDocumentAbstractPdfBuilder +abstract class ZugferdDocumentPdfBuilderAbstract { /** * Instance of the pdfwriter @@ -62,9 +62,9 @@ public function __construct(string $pdfData) /** * Generates the final document * - * @return ZugferdDocumentAbstractPdfBuilder + * @return static */ - public function generateDocument(): ZugferdDocumentAbstractPdfBuilder + public function generateDocument(): static { $this->startCreatePdf(); @@ -77,9 +77,9 @@ public function generateDocument(): ZugferdDocumentAbstractPdfBuilder * @param string $toFilename * The full qualified filename to which the generated PDF (with attachment) * is stored - * @return ZugferdDocumentAbstractPdfBuilder + * @return static */ - public function saveDocument(string $toFilename): ZugferdDocumentAbstractPdfBuilder + public function saveDocument(string $toFilename): static { $this->pdfWriter->Output($toFilename, 'F'); diff --git a/src/ZugferdDocumentPdfMerger.php b/src/ZugferdDocumentPdfMerger.php index 52ed6118..844321aa 100644 --- a/src/ZugferdDocumentPdfMerger.php +++ b/src/ZugferdDocumentPdfMerger.php @@ -12,7 +12,7 @@ use Exception; use SimpleXMLElement; use horstoeko\zugferd\ZugferdProfiles; -use horstoeko\zugferd\ZugferdDocumentAbstractPdfBuilder; +use horstoeko\zugferd\ZugferdDocumentPdfBuilderAbstract; /** * Class representing the facillity adding existing XML data (file or data-string) @@ -24,7 +24,7 @@ * @license https://opensource.org/licenses/MIT MIT * @link https://github.com/horstoeko/zugferd */ -class ZugferdDocumentPdfMerger extends ZugferdDocumentAbstractPdfBuilder +class ZugferdDocumentPdfMerger extends ZugferdDocumentPdfBuilderAbstract { /** * Internal reference to the xml data (file or data-string)