Skip to content

Commit

Permalink
Change downloadDocumentToPath from private to public function
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Latinovic committed Jan 31, 2022
1 parent fedc17d commit 983650e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/Eversign/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public function downloadFinalDocumentToPath(Document $document, $path, $auditTra
}
return $this->downloadDocumentToPath($document, $path, $auditTrail);
}

/**
* Downloads the Audit Trail to the specified Path.
* Returns true if saving was successful, otherwise false.
Expand All @@ -460,7 +460,7 @@ public function downloadRawDocumentToPath(Document $document, $path) {
return $this->downloadDocumentToPath($document, $path, 0, Config::DOCUMENT_RAW_URL);
}

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

0 comments on commit 983650e

Please sign in to comment.