@@ -17,7 +17,7 @@ class JSignParam
1717 private string $ tempPath = '' ;
1818 private string $ tempName = '' ;
1919 private bool $ isOutputTypeBase64 = false ;
20- private string $ jSignPdfJarPath ;
20+ private string $ jSignPdfJarPath = '' ;
2121 private string $ javaDownloadUrl = 'https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.8_9.tar.gz ' ;
2222 private string $ jSignPdfDownloadUrl = 'https://github.com/intoolswetrust/jsignpdf/releases/download/JSignPdf_2_3_0/jsignpdf-2.3.0.zip ' ;
2323
@@ -39,7 +39,7 @@ public function getPdf(): string
3939 return $ this ->pdf ;
4040 }
4141
42- public function setPdf (? string $ pdf ): self
42+ public function setPdf (string $ pdf ): self
4343 {
4444 $ this ->pdf = $ pdf ;
4545 return $ this ;
@@ -50,7 +50,7 @@ public function getCertificate(): string
5050 return $ this ->certificate ;
5151 }
5252
53- public function setCertificate (? string $ certificate ): self
53+ public function setCertificate (string $ certificate ): self
5454 {
5555 $ this ->certificate = $ certificate ;
5656 return $ this ;
@@ -61,7 +61,7 @@ public function getPassword(): string
6161 return $ this ->password ;
6262 }
6363
64- public function setPassword (? string $ password ): self
64+ public function setPassword (string $ password ): self
6565 {
6666 $ this ->password = $ password ;
6767 return $ this ;
@@ -72,7 +72,7 @@ public function getPathPdfSigned(): string
7272 return $ this ->pathPdfSigned != null ? $ this ->pathPdfSigned : $ this ->getTempPath ();
7373 }
7474
75- public function setPathPdfSigned ($ pathPdfSigned ): self
75+ public function setPathPdfSigned (string $ pathPdfSigned ): self
7676 {
7777 $ this ->pathPdfSigned = $ pathPdfSigned ;
7878 return $ this ;
@@ -94,7 +94,7 @@ public function getTempPath(): string
9494 return $ this ->tempPath ;
9595 }
9696
97- public function setTempPath (? string $ tempPath ): self
97+ public function setTempPath (string $ tempPath ): self
9898 {
9999 $ this ->tempPath = $ tempPath ;
100100 return $ this ;
@@ -125,7 +125,7 @@ public function getJavaPath(): string {
125125 return $ this ->javaPath ;
126126 }
127127
128- public function setjSignPdfJarPath ($ jSignPdfJarPath ): self
128+ public function setjSignPdfJarPath (string $ jSignPdfJarPath ): self
129129 {
130130 $ this ->jSignPdfJarPath = $ jSignPdfJarPath ;
131131 return $ this ;
0 commit comments