Skip to content

Commit

Permalink
Fixed typo in variable (OrderDocumentPdfBuilder)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Jan 7, 2024
1 parent e16d0e8 commit 77bca35
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/OrderDocumentPdfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OrderDocumentPdfBuilder extends OrderDocumentPdfBuilderAbstract
*
* @var OrderDocumentBuilder
*/
private $documentBuiler = null;
private $documentBuilder = null;

/**
* Cached XML data
Expand All @@ -40,15 +40,15 @@ class OrderDocumentPdfBuilder extends OrderDocumentPdfBuilderAbstract
/**
* Constructor
*
* @param OrderDocumentBuilder $documentBuiler
* @param OrderDocumentBuilder $documentBuilder
* The instance of the document builder. Needed to get the XML data
* @param string $pdfData
* The full filename or a string containing the binary pdf data. This
* is the original PDF (e.g. created by a ERP system)
*/
public function __construct(OrderDocumentBuilder $documentBuiler, string $pdfData)
public function __construct(OrderDocumentBuilder $documentBuilder, string $pdfData)
{
$this->documentBuiler = $documentBuiler;
$this->documentBuilder = $documentBuilder;

parent::__construct($pdfData);
}
Expand All @@ -62,7 +62,7 @@ protected function getXmlContent(): string
return $this->xmlDataCache;
}

$this->xmlDataCache = $this->documentBuiler->getContentAsDomDocument()->saveXML();
$this->xmlDataCache = $this->documentBuilder->getContentAsDomDocument()->saveXML();

return $this->xmlDataCache;
}
Expand All @@ -72,14 +72,14 @@ protected function getXmlContent(): string
*/
protected function getXmlAttachmentFilename(): string
{
return $this->documentBuiler->getProfileDefinition()['attachmentfilename'];
return $this->documentBuilder->getProfileDefinition()['attachmentfilename'];
}

/**
* @inheritDoc
*/
protected function getXmlAttachmentXmpName(): string
{
return $this->documentBuiler->getProfileDefinition()["xmpname"];
return $this->documentBuilder->getProfileDefinition()["xmpname"];
}
}

0 comments on commit 77bca35

Please sign in to comment.