@@ -121,7 +121,7 @@ |
||
121 | 121 | * @param bool $replace Whether the encrypted node should be replaced in the original tree. Default is true. |
122 | 122 | * @throws Exception |
123 | 123 | * |
124 | - * @return DOMElement The <xenc:EncryptedData>-element. |
|
124 | + * @return DOMNode|null The <xenc:EncryptedData>-element. |
|
125 | 125 | */ |
126 | 126 | public function encryptNode($objKey, $replace = true) |
127 | 127 | { |
@@ -105,6 +105,9 @@ |
||
105 | 105 | $this->transforms[] = $transformType; |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param string $tag |
|
110 | + */ |
|
108 | 111 | public function sign(DOMDocument $data, $tag = null) |
109 | 112 | { |
110 | 113 | if (null === $this->privateKey) { |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | } |
346 | 346 | |
347 | 347 | /** |
348 | - * @param $refNode |
|
348 | + * @param DOMNode $refNode |
|
349 | 349 | * @param string $data |
350 | 350 | * @return bool |
351 | 351 | */ |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | } |
363 | 363 | |
364 | 364 | /** |
365 | - * @param $refNode |
|
365 | + * @param DOMNode $refNode |
|
366 | 366 | * @param DOMNode $objData |
367 | 367 | * @param bool $includeCommentNodes |
368 | 368 | * @return string |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | /** |
785 | 785 | * @param XMLSecurityKey $objKey |
786 | 786 | * @param string $data |
787 | - * @return mixed|string |
|
787 | + * @return string|null |
|
788 | 788 | */ |
789 | 789 | public function signData($objKey, $data) |
790 | 790 | { |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * Encrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor. |
492 | 492 | * |
493 | 493 | * @param string $data |
494 | - * @return mixed|string |
|
494 | + * @return string|null |
|
495 | 495 | */ |
496 | 496 | public function encryptData($data) |
497 | 497 | { |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * Decrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor. |
508 | 508 | * |
509 | 509 | * @param string $data |
510 | - * @return mixed|string |
|
510 | + * @return string|null |
|
511 | 511 | */ |
512 | 512 | public function decryptData($data) |
513 | 513 | { |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | * Signs the data (string) using the extension assigned to the type in the constructor. |
524 | 524 | * |
525 | 525 | * @param string $data |
526 | - * @return mixed|string |
|
526 | + * @return string|null |
|
527 | 527 | */ |
528 | 528 | public function signData($data) |
529 | 529 | { |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | } |
632 | 632 | |
633 | 633 | /** |
634 | - * @param mixed $parent |
|
634 | + * @param null|\DOMNode $parent |
|
635 | 635 | */ |
636 | 636 | public function serializeKey($parent) |
637 | 637 | { |
@@ -42,6 +42,9 @@ |
||
42 | 42 | $this->setTributacao('99'); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @return string|null |
|
47 | + */ |
|
45 | 48 | public function getValor($normalize = false) |
46 | 49 | { |
47 | 50 | if (!$normalize) { |
@@ -40,6 +40,9 @@ |
||
40 | 40 | $this->setTributacao('03'); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @return string|null |
|
45 | + */ |
|
43 | 46 | public function getQuantidade($normalize = false) |
44 | 47 | { |
45 | 48 | if (!$normalize) { |