@@ -12,8 +12,8 @@ |
||
| 12 | 12 | * @link http://github.com/nfephp-org/nfephp for the canonical source repository |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -use NFePHP\Common\Strings\Strings; |
|
| 16 | 15 | use NFePHP\Common\Exception; |
| 16 | +use NFePHP\Common\Strings\Strings; |
|
| 17 | 17 | |
| 18 | 18 | class CurlSoap |
| 19 | 19 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param string $priKeyPath path para a chave privada |
| 91 | 91 | * @param string $pubKeyPath path para a chave publica |
| 92 | 92 | * @param string $certKeyPath path para o certificado |
| 93 | - * @param string $timeout tempo de espera da resposta do webservice |
|
| 93 | + * @param integer $timeout tempo de espera da resposta do webservice |
|
| 94 | 94 | * @param integer $sslProtocol |
| 95 | 95 | */ |
| 96 | 96 | public function __construct($priKeyPath = '', $pubKeyPath = '', $certKeyPath = '', $timeout = 10, $sslProtocol = 0) |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * @param string $port numero da porta usada pelo proxy |
| 118 | 118 | * @param string $user nome do usuário do proxy |
| 119 | 119 | * @param string $pass senha de acesso ao proxy |
| 120 | - * @return boolean |
|
| 120 | + * @return boolean|null |
|
| 121 | 121 | */ |
| 122 | 122 | public function setProxy($ipNumber, $port, $user = '', $pass = '') |
| 123 | 123 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | 145 | * Envia mensagem ao webservice |
| 146 | - * @param string $urlsevice |
|
| 146 | + * @param string $urlservice |
|
| 147 | 147 | * @param string $namespace |
| 148 | 148 | * @param string $header |
| 149 | 149 | * @param string $body |
@@ -216,8 +216,8 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * getWsdl |
| 218 | 218 | * Baixa o arquivo wsdl do webservice |
| 219 | - * @param string $urlsefaz |
|
| 220 | - * @return boolean|string |
|
| 219 | + * @param string $urlservice |
|
| 220 | + * @return false|string |
|
| 221 | 221 | */ |
| 222 | 222 | public function getWsdl($urlservice) |
| 223 | 223 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * @param string $certificateKey |
| 56 | 56 | * @param string $pathWsdl |
| 57 | 57 | * @param integer $timeout |
| 58 | - * @return boolean |
|
| 58 | + * @return null|false |
|
| 59 | 59 | */ |
| 60 | 60 | public function __construct($publicKey = '', $privateKey = '', $certificateKey = '', $pathWsdl = '', $timeout = 10) |
| 61 | 61 | { |
@@ -84,14 +84,11 @@ discard block |
||
| 84 | 84 | * usando as chaves publica e privada parametrizadas na contrução da classe. |
| 85 | 85 | * Conforme Manual de Integração Versão 4.0.1 |
| 86 | 86 | * |
| 87 | - * @param string $urlsefaz |
|
| 88 | 87 | * @param string $namespace |
| 89 | 88 | * @param string $cabecalho |
| 90 | 89 | * @param string $dados |
| 91 | 90 | * @param string $metodo |
| 92 | - * @param integer $ambiente tipo de ambiente 1 - produção e 2 - homologação |
|
| 93 | - * @param string $UF unidade da federação, necessário para diferenciar AM, MT e PR |
|
| 94 | - * @return mixed false se houve falha ou o retorno em xml do SEFAZ |
|
| 91 | + * @return false|string false se houve falha ou o retorno em xml do SEFAZ |
|
| 95 | 92 | */ |
| 96 | 93 | public function send( |
| 97 | 94 | $siglaUF = '', |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | * @link http://github.com/nfephp-org/nfephp for the canonical source repository |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -use NFePHP\Common\Soap\CorrectedSoapClient; |
|
| 16 | 15 | use NFePHP\Common\Exception; |
| 16 | +use NFePHP\Common\Soap\CorrectedSoapClient; |
|
| 17 | 17 | |
| 18 | 18 | class NatSoap |
| 19 | 19 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * getOid |
| 20 | - * @param type $key |
|
| 20 | + * @param string $key |
|
| 21 | 21 | * @return mixed |
| 22 | 22 | */ |
| 23 | 23 | public static function getOid($key) |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | $this->load(); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $password |
|
| 42 | + */ |
|
| 40 | 43 | private function read($content, $password) |
| 41 | 44 | { |
| 42 | 45 | $certs = []; |