| @@ 405-430 (lines=26) @@ | ||
| 402 | * @param stdClass $std |
|
| 403 | * @return DOMElement |
|
| 404 | */ |
|
| 405 | public function taginfMunCarrega(stdClass $std) |
|
| 406 | { |
|
| 407 | $possible = [ |
|
| 408 | 'cMunCarrega', |
|
| 409 | 'xMunCarrega' |
|
| 410 | ]; |
|
| 411 | ||
| 412 | $std = $this->equilizeParameters($std, $possible); |
|
| 413 | $infMunCarrega = $this->dom->createElement("infMunCarrega"); |
|
| 414 | $this->dom->addChild( |
|
| 415 | $infMunCarrega, |
|
| 416 | "cMunCarrega", |
|
| 417 | $std->cMunCarrega, |
|
| 418 | true, |
|
| 419 | "Código do Município de Carregamento" |
|
| 420 | ); |
|
| 421 | $this->dom->addChild( |
|
| 422 | $infMunCarrega, |
|
| 423 | "xMunCarrega", |
|
| 424 | $std->xMunCarrega, |
|
| 425 | true, |
|
| 426 | "Nome do Município de Carregamento" |
|
| 427 | ); |
|
| 428 | $this->aInfMunCarrega[] = $infMunCarrega; |
|
| 429 | return $infMunCarrega; |
|
| 430 | } |
|
| 431 | ||
| 432 | /** |
|
| 433 | * tagInfPercurso |
|
| @@ 1337-1361 (lines=25) @@ | ||
| 1334 | * @param stdClass $std |
|
| 1335 | * @return DOMElement |
|
| 1336 | */ |
|
| 1337 | public function taginfAdic(stdClass $std) |
|
| 1338 | { |
|
| 1339 | $possible = [ |
|
| 1340 | 'infAdFisco', |
|
| 1341 | 'infCpl' |
|
| 1342 | ]; |
|
| 1343 | $std = $this->equilizeParameters($std, $possible); |
|
| 1344 | $infAdic = $this->dom->createElement("infAdic"); |
|
| 1345 | $this->dom->addChild( |
|
| 1346 | $infAdic, |
|
| 1347 | "infAdFisco", |
|
| 1348 | $std->infAdFisco, |
|
| 1349 | false, |
|
| 1350 | "Informações Adicionais de Interesse do Fisco" |
|
| 1351 | ); |
|
| 1352 | $this->dom->addChild( |
|
| 1353 | $infAdic, |
|
| 1354 | "infCpl", |
|
| 1355 | $std->infCpl, |
|
| 1356 | false, |
|
| 1357 | "Informações Complementares de interesse do Contribuinte" |
|
| 1358 | ); |
|
| 1359 | $this->infAdic = $infAdic; |
|
| 1360 | return $infAdic; |
|
| 1361 | } |
|
| 1362 | ||
| 1363 | /** |
|
| 1364 | * tagautXML |
|
| @@ 1372-1396 (lines=25) @@ | ||
| 1369 | * @param stdClass $std |
|
| 1370 | * @return DOMElement |
|
| 1371 | */ |
|
| 1372 | public function tagautXML(stdClass $std) |
|
| 1373 | { |
|
| 1374 | $possible = [ |
|
| 1375 | 'CNPJ', |
|
| 1376 | 'CPF' |
|
| 1377 | ]; |
|
| 1378 | $std = $this->equilizeParameters($std, $possible); |
|
| 1379 | $autXML = $this->dom->createElement("autXML"); |
|
| 1380 | $this->dom->addChild( |
|
| 1381 | $autXML, |
|
| 1382 | "CNPJ", |
|
| 1383 | $std->CNPJ, |
|
| 1384 | false, |
|
| 1385 | "CNPJ do autorizado" |
|
| 1386 | ); |
|
| 1387 | $this->dom->addChild( |
|
| 1388 | $autXML, |
|
| 1389 | "CPF", |
|
| 1390 | $std->CPF, |
|
| 1391 | false, |
|
| 1392 | "CPF do autorizado" |
|
| 1393 | ); |
|
| 1394 | $this->autXML[] = $autXML; |
|
| 1395 | return $this->autXML; |
|
| 1396 | } |
|
| 1397 | ||
| 1398 | /** |
|
| 1399 | * buildInfModal |
|