Skip to content

Commit 983650e

Browse files
author
Milan Latinovic
committed
Change downloadDocumentToPath from private to public function
1 parent fedc17d commit 983650e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/Eversign/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public function downloadFinalDocumentToPath(Document $document, $path, $auditTra
434434
}
435435
return $this->downloadDocumentToPath($document, $path, $auditTrail);
436436
}
437-
437+
438438
/**
439439
* Downloads the Audit Trail to the specified Path.
440440
* Returns true if saving was successful, otherwise false.
@@ -460,7 +460,7 @@ public function downloadRawDocumentToPath(Document $document, $path) {
460460
return $this->downloadDocumentToPath($document, $path, 0, Config::DOCUMENT_RAW_URL);
461461
}
462462

463-
private function downloadDocumentToPath(Document $document, $path, $auditTrail = 0, $type = Config::DOCUMENT_FINAL_URL, $documentId = "") {
463+
public function downloadDocumentToPath(Document $document, $path, $auditTrail = 0, $type = Config::DOCUMENT_FINAL_URL, $documentId = "") {
464464
if (!$path || !$document) {
465465
throw new \Exception('To Download the Document you need to set a path and the document');
466466
}

0 commit comments

Comments
 (0)