1515
1616class SendWithThirdPartyNotaryService
1717{
18- public static function sendWithNotary ($ signerEmail , $ signerName , $ envelopesApi , $ accountId , $ demoPath ): mixed {
18+ public static function sendWithNotary ($ signerEmail , $ signerName , $ envelopesApi , $ accountId , $ demoPath ): mixed
19+ {
1920 $ env = SendWithThirdPartyNotaryService::makeEnvelope ($ signerEmail , $ signerName , $ demoPath );
2021
2122 $ results = $ envelopesApi ->createEnvelope ($ accountId , $ env );
2223 return $ results ;
2324 }
2425
25- static function makeEnvelope ($ signerEmail , $ signerName , $ demoPath ): EnvelopeDefinition {
26+ private static function makeEnvelope ($ signerEmail , $ signerName , $ demoPath ): EnvelopeDefinition
27+ {
2628 $ env = new EnvelopeDefinition ();
2729 $ env ->setEmailSubject ("Please sign this document set " );
2830
@@ -38,7 +40,8 @@ static function makeEnvelope($signerEmail, $signerName, $demoPath): EnvelopeDefi
3840 return $ env ;
3941 }
4042
41- static function getDocuments ($ signerEmail , $ signerName ,$ demoPath ): array {
43+ private static function getDocuments ($ signerEmail , $ signerName , $ demoPath ): array
44+ {
4245 $ doc = new Document ();
4346 $ b64 = base64_encode (SendWithThirdPartyNotaryService::getDocumentExample ($ signerEmail , $ signerName , $ demoPath ));
4447
@@ -50,7 +53,8 @@ static function getDocuments($signerEmail, $signerName,$demoPath): array {
5053 return [$ doc ];
5154 }
5255
53- static function getDocumentExample ($ signerEmail , $ signerName , $ demoPath ): string {
56+ private static function getDocumentExample ($ signerEmail , $ signerName , $ demoPath ): string
57+ {
5458 $ htmlMarkupFileName = "order_form.html " ;
5559 $ htmlMarkup = file_get_contents ($ demoPath . $ htmlMarkupFileName );
5660 $ htmlWithData = str_replace (
@@ -67,7 +71,8 @@ static function getDocumentExample($signerEmail, $signerName, $demoPath): string
6771 return $ htmlWithData ;
6872 }
6973
70- static function getSigners ($ signerEmail , $ signerName ) {
74+ private static function getSigners ($ signerEmail , $ signerName )
75+ {
7176 $ signer = new Signer ();
7277 $ signer ->setClientUserId ("1000 " );
7378 $ signer ->setEmail ($ signerEmail );
@@ -96,7 +101,8 @@ static function getSigners($signerEmail, $signerName) {
96101 return [$ signer ];
97102 }
98103
99- static function getNotaryRecipients (): array {
104+ private static function getNotaryRecipients (): array
105+ {
100106 $ notarySeal = new NotarySeal ();
101107 $ notarySeal ->setXPosition ("300 " );
102108 $ notarySeal ->setYPosition ("235 " );
0 commit comments