@@ -109,6 +109,9 @@ |
||
| 109 | 109 | return $this->response->getElementsByTagName('Body')->item(0); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param \DOMDocument $body |
|
| 114 | + */ |
|
| 112 | 115 | public function send($url, $body, $header = '', $action = null) |
| 113 | 116 | { |
| 114 | 117 | $this->setOpt(CURLOPT_SSLCERT, $this->getCertificate()); |
@@ -60,6 +60,9 @@ discard block |
||
| 60 | 60 | return $data; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $uf |
|
| 65 | + */ |
|
| 63 | 66 | private function getImpostoOffline($ncm, $uf, $ex) |
| 64 | 67 | { |
| 65 | 68 | $data = $this->load($uf); |
@@ -76,6 +79,9 @@ discard block |
||
| 76 | 79 | return $o; |
| 77 | 80 | } |
| 78 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $uf |
|
| 84 | + */ |
|
| 79 | 85 | private function getImpostoOnline($cnpj, $token, $ncm, $uf, $ex) |
| 80 | 86 | { |
| 81 | 87 | if ($this->offline) { |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | return $this; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @return string|null |
|
| 64 | + */ |
|
| 62 | 65 | public function getCEP($normalize = false) |
| 63 | 66 | { |
| 64 | 67 | if (!$normalize) { |
@@ -84,6 +87,9 @@ discard block |
||
| 84 | 87 | return $this; |
| 85 | 88 | } |
| 86 | 89 | |
| 90 | + /** |
|
| 91 | + * @return string|null |
|
| 92 | + */ |
|
| 87 | 93 | public function getBairro($normalize = false) |
| 88 | 94 | { |
| 89 | 95 | if (!$normalize) { |
@@ -98,6 +104,9 @@ discard block |
||
| 98 | 104 | return $this; |
| 99 | 105 | } |
| 100 | 106 | |
| 107 | + /** |
|
| 108 | + * @return string|null |
|
| 109 | + */ |
|
| 101 | 110 | public function getLogradouro($normalize = false) |
| 102 | 111 | { |
| 103 | 112 | if (!$normalize) { |
@@ -112,6 +121,9 @@ discard block |
||
| 112 | 121 | return $this; |
| 113 | 122 | } |
| 114 | 123 | |
| 124 | + /** |
|
| 125 | + * @return string|null |
|
| 126 | + */ |
|
| 115 | 127 | public function getNumero($normalize = false) |
| 116 | 128 | { |
| 117 | 129 | if (!$normalize) { |
@@ -252,6 +264,9 @@ discard block |
||
| 252 | 264 | return $element; |
| 253 | 265 | } |
| 254 | 266 | |
| 267 | + /** |
|
| 268 | + * @param string $name |
|
| 269 | + */ |
|
| 255 | 270 | public function loadNode($element, $name = null) |
| 256 | 271 | { |
| 257 | 272 | $name = is_null($name)?'enderEmit':$name; |
@@ -153,6 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | 155 | * Código da situação tributária |
| 156 | + * @return string|null |
|
| 156 | 157 | */ |
| 157 | 158 | public function getTributacao($normalize = false) |
| 158 | 159 | { |
@@ -170,6 +171,7 @@ discard block |
||
| 170 | 171 | |
| 171 | 172 | /** |
| 172 | 173 | * Porcentagem do imposto |
| 174 | + * @return string|null |
|
| 173 | 175 | */ |
| 174 | 176 | public function getAliquota($normalize = false) |
| 175 | 177 | { |
@@ -27,8 +27,6 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | namespace NFe\Entity\Imposto\ICMS; |
| 29 | 29 | |
| 30 | -use NFe\Common\Util; |
|
| 31 | - |
|
| 32 | 30 | /** |
| 33 | 31 | * Tributação pelo ICMS |
| 34 | 32 | * 70 - Com redução de base de cálculo e cobrança do |
@@ -60,6 +60,7 @@ |
||
| 60 | 60 | * 49 - Outras entradas |
| 61 | 61 | * 50-Saída tributada |
| 62 | 62 | * 99-Outras saídas |
| 63 | + * @return string|null |
|
| 63 | 64 | */ |
| 64 | 65 | public function getTributacao($normalize = false) |
| 65 | 66 | { |
@@ -59,6 +59,7 @@ |
||
| 59 | 59 | * 54-Saída imune |
| 60 | 60 | * 55-Saída com |
| 61 | 61 | * suspensão |
| 62 | + * @return string|null |
|
| 62 | 63 | */ |
| 63 | 64 | public function getTributacao($normalize = false) |
| 64 | 65 | { |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | return $element; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $name |
|
| 88 | + */ |
|
| 86 | 89 | public function loadNode($element, $name = null) |
| 87 | 90 | { |
| 88 | 91 | $name = is_null($name)?'transporta':$name; |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | $this->fromArray($envio); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @return string |
|
| 64 | + */ |
|
| 62 | 65 | public function getServico($normalize = false) |
| 63 | 66 | { |
| 64 | 67 | if (!$normalize) { |
@@ -143,6 +146,9 @@ discard block |
||
| 143 | 146 | return $this; |
| 144 | 147 | } |
| 145 | 148 | |
| 149 | + /** |
|
| 150 | + * @return string|null |
|
| 151 | + */ |
|
| 146 | 152 | public function getVersao() |
| 147 | 153 | { |
| 148 | 154 | $config = SEFAZ::getInstance()->getConfiguracao(); |
@@ -29,7 +29,6 @@ |
||
| 29 | 29 | |
| 30 | 30 | use NFe\Core\Nota; |
| 31 | 31 | use NFe\Core\SEFAZ; |
| 32 | -use NFe\Common\Node; |
|
| 33 | 32 | use NFe\Common\CurlSoap; |
| 34 | 33 | |
| 35 | 34 | class Envio |