| @@ 388-413 (lines=26) @@ | ||
| 385 | * |
|
| 386 | * @return DOMElement |
|
| 387 | */ |
|
| 388 | public function taginfMunCarrega(stdClass $std) |
|
| 389 | { |
|
| 390 | $possible = [ |
|
| 391 | 'cMunCarrega', |
|
| 392 | 'xMunCarrega' |
|
| 393 | ]; |
|
| 394 | ||
| 395 | $std = $this->equilizeParameters($std, $possible); |
|
| 396 | $infMunCarrega = $this->dom->createElement("infMunCarrega"); |
|
| 397 | $this->dom->addChild( |
|
| 398 | $infMunCarrega, |
|
| 399 | "cMunCarrega", |
|
| 400 | $std->cMunCarrega, |
|
| 401 | true, |
|
| 402 | "Código do Município de Carregamento" |
|
| 403 | ); |
|
| 404 | $this->dom->addChild( |
|
| 405 | $infMunCarrega, |
|
| 406 | "xMunCarrega", |
|
| 407 | $std->xMunCarrega, |
|
| 408 | true, |
|
| 409 | "Nome do Município de Carregamento" |
|
| 410 | ); |
|
| 411 | $this->aInfMunCarrega[] = $infMunCarrega; |
|
| 412 | return $infMunCarrega; |
|
| 413 | } |
|
| 414 | ||
| 415 | /** |
|
| 416 | * tagInfPercurso |
|
| @@ 1370-1394 (lines=25) @@ | ||
| 1367 | * |
|
| 1368 | * @return DOMElement |
|
| 1369 | */ |
|
| 1370 | public function taginfAdic(stdClass $std) |
|
| 1371 | { |
|
| 1372 | $possible = [ |
|
| 1373 | 'infAdFisco', |
|
| 1374 | 'infCpl' |
|
| 1375 | ]; |
|
| 1376 | $std = $this->equilizeParameters($std, $possible); |
|
| 1377 | $infAdic = $this->dom->createElement("infAdic"); |
|
| 1378 | $this->dom->addChild( |
|
| 1379 | $infAdic, |
|
| 1380 | "infAdFisco", |
|
| 1381 | $std->infAdFisco, |
|
| 1382 | false, |
|
| 1383 | "Informações Adicionais de Interesse do Fisco" |
|
| 1384 | ); |
|
| 1385 | $this->dom->addChild( |
|
| 1386 | $infAdic, |
|
| 1387 | "infCpl", |
|
| 1388 | $std->infCpl, |
|
| 1389 | false, |
|
| 1390 | "Informações Complementares de interesse do Contribuinte" |
|
| 1391 | ); |
|
| 1392 | $this->infAdic = $infAdic; |
|
| 1393 | return $infAdic; |
|
| 1394 | } |
|
| 1395 | ||
| 1396 | /** |
|
| 1397 | * tagautXML |
|
| @@ 1407-1431 (lines=25) @@ | ||
| 1404 | * |
|
| 1405 | * @return DOMElement |
|
| 1406 | */ |
|
| 1407 | public function tagautXML(stdClass $std) |
|
| 1408 | { |
|
| 1409 | $possible = [ |
|
| 1410 | 'CNPJ', |
|
| 1411 | 'CPF' |
|
| 1412 | ]; |
|
| 1413 | $std = $this->equilizeParameters($std, $possible); |
|
| 1414 | $autXML = $this->dom->createElement("autXML"); |
|
| 1415 | $this->dom->addChild( |
|
| 1416 | $autXML, |
|
| 1417 | "CNPJ", |
|
| 1418 | $std->CNPJ, |
|
| 1419 | false, |
|
| 1420 | "CNPJ do autorizado" |
|
| 1421 | ); |
|
| 1422 | $this->dom->addChild( |
|
| 1423 | $autXML, |
|
| 1424 | "CPF", |
|
| 1425 | $std->CPF, |
|
| 1426 | false, |
|
| 1427 | "CPF do autorizado" |
|
| 1428 | ); |
|
| 1429 | $this->autXML[] = $autXML; |
|
| 1430 | return $this->autXML; |
|
| 1431 | } |
|
| 1432 | ||
| 1433 | /** |
|
| 1434 | * buildInfModal |
|