Complex classes like Parser often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Parser, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 22 | class Parser |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $structure; |
||
| 28 | /** |
||
| 29 | * @var Make |
||
| 30 | */ |
||
| 31 | protected $make; |
||
| 32 | /** |
||
| 33 | * @var int |
||
| 34 | */ |
||
| 35 | protected $item = 0; |
||
| 36 | /** |
||
| 37 | * @var int |
||
| 38 | */ |
||
| 39 | protected $nDI = 0; |
||
| 40 | /** |
||
| 41 | * @var int |
||
| 42 | */ |
||
| 43 | protected $volId = -1; |
||
| 44 | /** |
||
| 45 | * @var stdClass |
||
| 46 | */ |
||
| 47 | protected $stdNFP; |
||
| 48 | /** |
||
| 49 | * @var stdClass |
||
| 50 | */ |
||
| 51 | protected $stdEmit; |
||
| 52 | /** |
||
| 53 | * @var stdClass |
||
| 54 | */ |
||
| 55 | protected $stdDest; |
||
| 56 | /** |
||
| 57 | * @var stdClass |
||
| 58 | */ |
||
| 59 | protected $stdRetirada; |
||
| 60 | /** |
||
| 61 | * @var stdClass |
||
| 62 | */ |
||
| 63 | protected $stdEntrega; |
||
| 64 | /** |
||
| 65 | * @var stdClass |
||
| 66 | */ |
||
| 67 | protected $stdComb; |
||
| 68 | /** |
||
| 69 | * @var stdClass |
||
| 70 | */ |
||
| 71 | protected $stdIPI; |
||
| 72 | /** |
||
| 73 | * @var stdClass |
||
| 74 | */ |
||
| 75 | protected $stdPIS; |
||
| 76 | /** |
||
| 77 | * @var stdClass |
||
| 78 | */ |
||
| 79 | protected $stdPISST; |
||
| 80 | /** |
||
| 81 | * @var stdClass |
||
| 82 | */ |
||
| 83 | protected $stdII; |
||
| 84 | /** |
||
| 85 | * @var stdClass |
||
| 86 | */ |
||
| 87 | protected $stdCOFINS; |
||
| 88 | /** |
||
| 89 | * @var stdClass |
||
| 90 | */ |
||
| 91 | protected $stdCOFINSST; |
||
| 92 | /** |
||
| 93 | * @var stdClass |
||
| 94 | */ |
||
| 95 | protected $stdTransporta; |
||
| 96 | /** |
||
| 97 | * @var |
||
| 98 | */ |
||
| 99 | private $limparString = false; |
||
| 100 | |||
| 101 | /** |
||
| 102 | * Configure environment to correct NFe layout |
||
| 103 | * @param string $version |
||
| 104 | */ |
||
| 105 | public function __construct($version = '3.10') |
||
| 112 | |||
| 113 | /** |
||
| 114 | * |
||
| 115 | * @param array $nota |
||
| 116 | * @return string |
||
| 117 | */ |
||
| 118 | public function toXml($nota) |
||
| 130 | |||
| 131 | /** |
||
| 132 | * Converte uma Nota Fiscal em um array de txt em um xml |
||
| 133 | * |
||
| 134 | * @param $nota |
||
| 135 | * |
||
| 136 | * @return void |
||
| 137 | */ |
||
| 138 | protected function array2xml($nota) |
||
| 155 | |||
| 156 | /** |
||
| 157 | * Creates stdClass for tag fields |
||
| 158 | * @param array $dfls |
||
| 159 | * @param string $struct |
||
| 160 | * @return stdClass |
||
| 161 | */ |
||
| 162 | protected static function fieldsToStd($dfls, $struct) |
||
| 176 | |||
| 177 | /** |
||
| 178 | * Clear the string of unwanted characters |
||
| 179 | * Will remove all duplicated spaces and if wanted |
||
| 180 | * replace all accented characters by their originals |
||
| 181 | * and all the special ones |
||
| 182 | * |
||
| 183 | * @param $std |
||
| 184 | * |
||
| 185 | * @return array |
||
| 186 | */ |
||
| 187 | protected function clearFieldsString($std) |
||
| 201 | |||
| 202 | /** |
||
| 203 | * Cria a tag infNFe [A] |
||
| 204 | * A|versao|Id|pk_nItem| |
||
| 205 | * @param stdClass $std |
||
| 206 | */ |
||
| 207 | protected function aEntity($std) |
||
| 211 | |||
| 212 | /** |
||
| 213 | * Cria a tag ide [B] |
||
| 214 | * B|cUF|cNF|natOp|indPag|mod|serie|nNF|dhEmi|dhSaiEnt|tpNF|idDest|cMunFG |
||
| 215 | * |tpImp|tpEmis|cDV|tp Amb|finNFe|indFinal|indPres|procEmi|verProc|dhCont|xJust| |
||
| 216 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 217 | * B|cUF|cNF|natOp|mod|serie|nNF|dhEmi|dhSaiEnt|tpNF|idDest|cMunFG|tpImp |
||
| 218 | * |tpEmis|cDV|tpAmb|finNFe|indFinal|indPres|procEmi|verProc|dhCont|xJust| |
||
| 219 | * @param stdClass $std |
||
| 220 | */ |
||
| 221 | protected function bEntity($std) |
||
| 225 | |||
| 226 | /** |
||
| 227 | * Cria a tag nfref [BA] |
||
| 228 | * BA| |
||
| 229 | * @param stdClass $std |
||
| 230 | */ |
||
| 231 | protected function baEntity($std) |
||
| 235 | |||
| 236 | /** |
||
| 237 | * Cria a tag refNFe [BA02] |
||
| 238 | * BA02|refNFe| |
||
| 239 | * @param stdClass $std |
||
| 240 | */ |
||
| 241 | protected function ba02Entity($std) |
||
| 245 | |||
| 246 | /** |
||
| 247 | * Cria a tag refNF [BA03] |
||
| 248 | * BA03|cUF|AAMM|CNPJ|mod|serie|nNF| |
||
| 249 | * @param stdClass $std |
||
| 250 | */ |
||
| 251 | protected function ba03Entity($std) |
||
| 255 | |||
| 256 | /** |
||
| 257 | * Carrega a tag refNFP [BA10] |
||
| 258 | * BA10|cUF|AAMM|IE|mod|serie|nNF| |
||
| 259 | * @param stdClass $std |
||
| 260 | */ |
||
| 261 | protected function ba10Entity($std) |
||
| 267 | |||
| 268 | /** |
||
| 269 | * CNPJ para a tag refNFP [BA13], pertence a BA10 |
||
| 270 | * BA13|CNPJ| |
||
| 271 | * @param stdClass $std |
||
| 272 | */ |
||
| 273 | protected function ba13Entity($std) |
||
| 279 | |||
| 280 | /** |
||
| 281 | * CPF para a tag refNFP [BA14], pertence a BA10 |
||
| 282 | * BA14|CPF| |
||
| 283 | * @param stdClass $std |
||
| 284 | */ |
||
| 285 | protected function ba14Entity($std) |
||
| 291 | |||
| 292 | /** |
||
| 293 | * Cria a tag refNFP [BA10] |
||
| 294 | */ |
||
| 295 | protected function buildBA10Entity() |
||
| 299 | |||
| 300 | /** |
||
| 301 | * Cria a tag refCTe [BA19] |
||
| 302 | * B19|refCTe| |
||
| 303 | * @param stdClass $std |
||
| 304 | */ |
||
| 305 | protected function ba19Entity($std) |
||
| 309 | |||
| 310 | /** |
||
| 311 | * Cria a tag refECF [BA20] |
||
| 312 | * BA20|mod|nECF|nCOO| |
||
| 313 | * @param stdClass $std |
||
| 314 | */ |
||
| 315 | protected function ba20Entity($std) |
||
| 319 | |||
| 320 | /** |
||
| 321 | * Carrega a tag emit [C] |
||
| 322 | * C|XNome|XFant|IE|IEST|IM|CNAE|CRT| |
||
| 323 | * @param stdClass $std |
||
| 324 | */ |
||
| 325 | protected function cEntity($std) |
||
| 331 | |||
| 332 | /** |
||
| 333 | * CNPJ da tag emit [C02], pertence a C |
||
| 334 | * C02|CNPJ| |
||
| 335 | * @param stdClass $std |
||
| 336 | */ |
||
| 337 | protected function c02Entity($std) |
||
| 343 | |||
| 344 | /** |
||
| 345 | * CPF da tag emit [C02a], pertence a C |
||
| 346 | * C02a|CPF| |
||
| 347 | * @param stdClass $std |
||
| 348 | */ |
||
| 349 | protected function c02aEntity($std) |
||
| 355 | |||
| 356 | /** |
||
| 357 | * Cria a tag emit [C] |
||
| 358 | */ |
||
| 359 | protected function buildCEntity() |
||
| 363 | |||
| 364 | /** |
||
| 365 | * Cria a tag enderEmit [C05] |
||
| 366 | * C05|xLgr|nro|xCpl|xBairro|cMun|xMun|UF|CEP|cPais|xPais|fone| |
||
| 367 | * @param stdClass $std |
||
| 368 | */ |
||
| 369 | protected function c05Entity($std) |
||
| 373 | |||
| 374 | /** |
||
| 375 | * Carrega a tag dest [E] |
||
| 376 | * E|xNome|indIEDest|IE|ISUF|IM|email| |
||
| 377 | * @param stdClass $std |
||
| 378 | */ |
||
| 379 | protected function eEntity($std) |
||
| 386 | |||
| 387 | /** |
||
| 388 | * CNPJ para a tag dest [E02], pertene a E |
||
| 389 | * E02|CNPJ| |
||
| 390 | * @param stdClass $std |
||
| 391 | */ |
||
| 392 | protected function e02Entity($std) |
||
| 398 | |||
| 399 | /** |
||
| 400 | * CPF para a tag dest [E03], pertene a E |
||
| 401 | * E03|CPF| |
||
| 402 | * @param stdClass $std |
||
| 403 | */ |
||
| 404 | protected function e03Entity($std) |
||
| 410 | |||
| 411 | /** |
||
| 412 | * idEstrangeiro para a tag dest [E03a], pertene a E |
||
| 413 | * E03a|idEstrangeiro| |
||
| 414 | * @param stdClass $std |
||
| 415 | */ |
||
| 416 | protected function e03aEntity($std) |
||
| 422 | |||
| 423 | /** |
||
| 424 | * Cria a tag dest [E] |
||
| 425 | */ |
||
| 426 | protected function buildEEntity() |
||
| 430 | |||
| 431 | /** |
||
| 432 | * Cria a tag enderDest [E05] |
||
| 433 | * E05|xLgr|nro|xCpl|xBairro|cMun|xMun|UF|CEP|cPais|xPais|fone| |
||
| 434 | * @param stdClass $std |
||
| 435 | */ |
||
| 436 | protected function e05Entity($std) |
||
| 440 | |||
| 441 | /** |
||
| 442 | * Carrega a tag retirada [F] |
||
| 443 | * F|xLgr|nro|xCpl|xBairro|cMun|xMun|UF| |
||
| 444 | * @param stdClass $std |
||
| 445 | */ |
||
| 446 | protected function fEntity($std) |
||
| 452 | |||
| 453 | /** |
||
| 454 | * CNPJ para a tag retirada [F02], pertence a F |
||
| 455 | * F02|CNPJ| |
||
| 456 | * @param stdClass $std |
||
| 457 | */ |
||
| 458 | protected function f02Entity($std) |
||
| 464 | |||
| 465 | /** |
||
| 466 | * CPF para a tag retirada [F02a], pertence a F |
||
| 467 | * F02a|CPF| |
||
| 468 | * @param stdClass $std |
||
| 469 | */ |
||
| 470 | protected function f02aEntity($std) |
||
| 476 | |||
| 477 | /** |
||
| 478 | * Cria a tag retirada [F] |
||
| 479 | */ |
||
| 480 | protected function buildFEntity() |
||
| 484 | |||
| 485 | /** |
||
| 486 | * Carrega e cria a tag entrega [G] |
||
| 487 | * G|xLgr|nro|xCpl|xBairro|cMun|xMun|UF| |
||
| 488 | * @param stdClass $std |
||
| 489 | */ |
||
| 490 | protected function gEntity($std) |
||
| 496 | |||
| 497 | /** |
||
| 498 | * CNPJ para a tag entrega [G02], pertence a G |
||
| 499 | * G02|CNPJ| |
||
| 500 | * @param stdClass $std |
||
| 501 | */ |
||
| 502 | protected function g02Entity($std) |
||
| 508 | |||
| 509 | /** |
||
| 510 | * CPF para a tag entrega [G02a], pertence a G |
||
| 511 | * G02a|CPF| |
||
| 512 | * @param stdClass $std |
||
| 513 | */ |
||
| 514 | protected function g02aEntity($std) |
||
| 520 | |||
| 521 | /** |
||
| 522 | * Cria a tag entrega [G] |
||
| 523 | */ |
||
| 524 | protected function buildGEntity() |
||
| 528 | |||
| 529 | /** |
||
| 530 | * Cria a tag autXML [GA] |
||
| 531 | * GA| |
||
| 532 | * @param stdClass $std |
||
| 533 | */ |
||
| 534 | protected function gaEntity($std) |
||
| 538 | |||
| 539 | /** |
||
| 540 | * Cria a tag autXML com CNPJ [GA02], pertence a GA |
||
| 541 | * GA02|CNPJ| |
||
| 542 | * @param stdClass $std |
||
| 543 | */ |
||
| 544 | protected function ga02Entity($std) |
||
| 548 | |||
| 549 | /** |
||
| 550 | * Cria a tag autXML com CPF [GA03], pertence a GA |
||
| 551 | * GA03|CPF| |
||
| 552 | * @param stdClass $std |
||
| 553 | */ |
||
| 554 | protected function ga03Entity($std) |
||
| 558 | |||
| 559 | /** |
||
| 560 | * Cria a tag det/infAdProd [H] |
||
| 561 | * H|item|infAdProd| |
||
| 562 | * @param stdClass $std |
||
| 563 | */ |
||
| 564 | protected function hEntity($std) |
||
| 571 | |||
| 572 | /** |
||
| 573 | * Cria a tag prod [I] |
||
| 574 | * I|cProd|cEAN|xProd|NCM|EXTIPI|CFOP|uCom|qCom|vUnCom|vProd|cEANTrib|uTrib|qTrib|vUnTrib|vFrete|vSeg|vDesc|vOutro|indTot|xPed|nItemPed|nFCI| |
||
| 575 | * |
||
| 576 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 577 | * I|cProd|cEAN|xProd|NCM|cBenf|EXTIPI|CFOP|uCom|qCom|vUnCom|vProd|cEANTrib|uTrib|qTrib|vUnTrib|vFrete|vSeg|vDesc|vOutro|indTot|xPed|nItemPed|nFCI| |
||
| 578 | * @param stdClass $std |
||
| 579 | */ |
||
| 580 | protected function iEntity($std) |
||
| 585 | |||
| 586 | /** |
||
| 587 | * Cria a tag NVE [I05A] |
||
| 588 | * I05A|NVE| |
||
| 589 | * @param stdClass $std |
||
| 590 | */ |
||
| 591 | protected function i05aEntity($std) |
||
| 596 | |||
| 597 | /** |
||
| 598 | * Cria a tag CEST [I05C] |
||
| 599 | * I05C|CEST| |
||
| 600 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 601 | * I05C|CEST|indEscala|CNPJFab| |
||
| 602 | * @param stdClass $std |
||
| 603 | */ |
||
| 604 | protected function i05cEntity($std) |
||
| 609 | |||
| 610 | /** |
||
| 611 | * Cria a tag DI [I18] |
||
| 612 | * I18|nDI|dDI|xLocDesemb|UFDesemb|dDesemb|tpViaTransp|vAFRMM|tpIntermedio|CNPJ|UFTerceiro|cExportador| |
||
| 613 | * @param stdClass $std |
||
| 614 | */ |
||
| 615 | protected function i18Entity($std) |
||
| 621 | |||
| 622 | /** |
||
| 623 | * Cria a tag adi [I25], pertence a I18 |
||
| 624 | * I25|nAdicao|nSeqAdicC|cFabricante|vDescDI|nDraw| |
||
| 625 | * @param stdClass $std |
||
| 626 | */ |
||
| 627 | protected function i25Entity($std) |
||
| 633 | |||
| 634 | /** |
||
| 635 | * Carrega e cria a tag detExport [I50] |
||
| 636 | * I50|nDraw| |
||
| 637 | * @param stdClass $std |
||
| 638 | */ |
||
| 639 | protected function i50Entity($std) |
||
| 647 | |||
| 648 | /** |
||
| 649 | * Carrega e cria a tag detExport/exportInd [I52] |
||
| 650 | * I52|nRE|chNFe|qExport| |
||
| 651 | * @param stdClass $std |
||
| 652 | */ |
||
| 653 | protected function i52Entity($std) |
||
| 659 | |||
| 660 | /** |
||
| 661 | * Cria a tag RASTRO [I80] |
||
| 662 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 663 | * I80|nLote|qLote|dFab|dVal|cAgreg| |
||
| 664 | * @param stdClass $std |
||
| 665 | */ |
||
| 666 | protected function i80Entity($std) |
||
| 671 | |||
| 672 | /** |
||
| 673 | * Cria a tag veicProd [JA] |
||
| 674 | * JA|tpOp|chassi|cCor|xCor|pot|cilin|pesoL|pesoB|nSerie|tpComb|nMotor|CMT|dist|anoMod|anoFab|tpPint|tpVeic|espVeic|VIN|condVeic|cMod|cCorDENATRAN|lota|tpRest| |
||
| 675 | * @param stdClass $std |
||
| 676 | */ |
||
| 677 | protected function jaEntity($std) |
||
| 682 | |||
| 683 | /** |
||
| 684 | * Cria a tag med [K] |
||
| 685 | * K|nLote|qLote|dFab|dVal|vPMC| |
||
| 686 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 687 | * K|cProdANVISA|vPMC| |
||
| 688 | * @param stdClass $std |
||
| 689 | */ |
||
| 690 | protected function kEntity($std) |
||
| 700 | |||
| 701 | /** |
||
| 702 | * Cria a tag arma [L] |
||
| 703 | * L|tpArma|nSerie|nCano|descr| |
||
| 704 | * @param stdClass $std |
||
| 705 | */ |
||
| 706 | protected function lEntity($std) |
||
| 711 | |||
| 712 | /** |
||
| 713 | * Carrega e cria a tag comb [LA] |
||
| 714 | * LA|cProdANP|pMixGN|CODIF|qTemp|UFCons| |
||
| 715 | * |
||
| 716 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 717 | * LA|cProdANP|descANP|pGLP|pGNn|pGNi|vPart|CODIF|qTemp|UFCons| |
||
| 718 | * @param stdClass $std |
||
| 719 | */ |
||
| 720 | protected function laEntity($std) |
||
| 727 | |||
| 728 | /** |
||
| 729 | * Carrega e cria a tag comb [LA07] |
||
| 730 | * LA07|qBCProd|vAliqProd|vCIDE| |
||
| 731 | * @param stdClass $std |
||
| 732 | */ |
||
| 733 | protected function la07Entity($std) |
||
| 741 | |||
| 742 | /** |
||
| 743 | * Carrega e cria a tag encerrante [LA11] |
||
| 744 | * LA11|nBico|nBomba|nTanque|vEncIni|vEncFin| |
||
| 745 | * @param stdClass $std |
||
| 746 | */ |
||
| 747 | protected function la11Entity($std) |
||
| 752 | |||
| 753 | /** |
||
| 754 | * Cria a tag comb [LA] |
||
| 755 | * @param stdClass $std |
||
| 756 | */ |
||
| 757 | protected function buildLAEntity($std) |
||
| 762 | |||
| 763 | /** |
||
| 764 | * Cria a tag RECOPI [LB] |
||
| 765 | * LB|nRECOPI| |
||
| 766 | * @param stdClass $std |
||
| 767 | */ |
||
| 768 | protected function lbEntity($std) |
||
| 773 | |||
| 774 | /** |
||
| 775 | * Cria a tag imposto [M] |
||
| 776 | * M|vTotTrib| |
||
| 777 | * @param stdClass $std |
||
| 778 | */ |
||
| 779 | protected function mEntity($std) |
||
| 784 | |||
| 785 | /** |
||
| 786 | * Carrega a tag ICMS [N] |
||
| 787 | * N| |
||
| 788 | * @param stdClass $std |
||
| 789 | */ |
||
| 790 | protected function nEntity($std) |
||
| 794 | |||
| 795 | /** |
||
| 796 | * Carrega e cria a tag ICMS [N02] |
||
| 797 | * N02|orig|CST|modBC|vBC|pICMS|vICMS| |
||
| 798 | * |
||
| 799 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 800 | * N02|orig|CST|modBC|vBC|pICMS|vICMS|pFCP|vFCP| |
||
| 801 | * @param stdClass $std |
||
| 802 | */ |
||
| 803 | protected function n02Entity($std) |
||
| 807 | |||
| 808 | /** |
||
| 809 | * Carrega e cria a tag ICMS [N03] |
||
| 810 | * N03|orig|CST|modBC|vBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST| |
||
| 811 | * |
||
| 812 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 813 | * N03|orig|CST|modBC|vBC|pICMS|vICMS|vBCFCP|pFCP|vFCP|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST| |
||
| 814 | * @param stdClass $std |
||
| 815 | */ |
||
| 816 | protected function n03Entity($std) |
||
| 820 | |||
| 821 | /** |
||
| 822 | * Carrega e cria a tag ICMS [N04] |
||
| 823 | * N04|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|vICMSDeson|motDesICMS| |
||
| 824 | * |
||
| 825 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 826 | * N04|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|BCFCP|pFCP|vFCP|vICMSDeson|motDesICMS| |
||
| 827 | * @param stdClass $std |
||
| 828 | */ |
||
| 829 | protected function n04Entity($std) |
||
| 833 | |||
| 834 | /** |
||
| 835 | * Carrega e cria a tag ICMS [N05] |
||
| 836 | * N05|orig|CST|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vICMSDeson|motDesICMS| |
||
| 837 | * |
||
| 838 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 839 | * N05|orig|CST|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|vICMSDeson|motDesICMS| |
||
| 840 | * @param stdClass $std |
||
| 841 | */ |
||
| 842 | protected function n05Entity($std) |
||
| 846 | |||
| 847 | /** |
||
| 848 | * Carrega e cria a tag ICMS [N06] |
||
| 849 | * N06|orig|CST|vICMSDeson|motDesICMS| |
||
| 850 | * @param stdClass $std |
||
| 851 | */ |
||
| 852 | protected function n06Entity($std) |
||
| 856 | |||
| 857 | /** |
||
| 858 | * Carrega e cria a tag ICMS [N07] |
||
| 859 | * N07|orig|CST|modBC|pRedBC|vBC|pICMS|vICMSOp|pDif|vICMSDif|vICMS| |
||
| 860 | * |
||
| 861 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 862 | * N07|orig|CST|modBC|pRedBC|vBC|pICMS|vICMSOp|pDif|vICMSDif|vICMS|vBCFCP|pFCP|vFCP| |
||
| 863 | * @param stdClass $std |
||
| 864 | */ |
||
| 865 | protected function n07Entity($std) |
||
| 869 | |||
| 870 | /** |
||
| 871 | * Carrega e cria a tag ICMS [N08] |
||
| 872 | * N08|orig|CST|vBCSTRet|vICMSSTRet| |
||
| 873 | * |
||
| 874 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 875 | * N08|orig|CST|vBCSTRet|pST|vICMSSTRet|vBCFCPSTRet|pFCPSTRet|vFCPSTRet| |
||
| 876 | * @param stdClass $std |
||
| 877 | */ |
||
| 878 | protected function n08Entity($std) |
||
| 882 | |||
| 883 | /** |
||
| 884 | * Carrega e cria a tag ICMS [N09] |
||
| 885 | * N09|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vICMSDeson|motDesICMS| |
||
| 886 | * |
||
| 887 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 888 | * N09|orig|CST|modBC|pRedBC|vBC|pICMS|vICMS|vBCFCP|pFCP|vFCP|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|vICMSDeson|motDesICMS| |
||
| 889 | * @param stdClass $std |
||
| 890 | */ |
||
| 891 | protected function n09Entity($std) |
||
| 895 | |||
| 896 | /** |
||
| 897 | * Carrega e cria a tag ICMS [N10] |
||
| 898 | * N10|orig|CST|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vICMSDeson|motDesICMS| |
||
| 899 | * |
||
| 900 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 901 | * N10|orig|CST|modBC|vBC|pRedBC|pICMS|vICMS|vBCFCP|pFCP|vFCP|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|vICMSDeson|motDesICMS| |
||
| 902 | * @param stdClass $std |
||
| 903 | */ |
||
| 904 | protected function n10Entity($std) |
||
| 908 | |||
| 909 | |||
| 910 | /** |
||
| 911 | * Cria a tag ICMS [N] |
||
| 912 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 913 | * @param \stdClass $std |
||
| 914 | */ |
||
| 915 | protected function buildNEntity($std) |
||
| 920 | |||
| 921 | /** |
||
| 922 | * Cria a tag ICMSPart [N10a] |
||
| 923 | * N10a|orig|CST|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|pBCOp|UFST| |
||
| 924 | * @param stdClass $std |
||
| 925 | */ |
||
| 926 | protected function n10aEntity($std) |
||
| 931 | |||
| 932 | /** |
||
| 933 | * Cria a tag ICMSST [N10b] |
||
| 934 | * N10b|orig|CST|vBCSTRet|vICMSSTRet|vBCSTDest|vICMSSTDest| |
||
| 935 | * @param stdClass $std |
||
| 936 | */ |
||
| 937 | protected function n10bEntity($std) |
||
| 942 | |||
| 943 | /** |
||
| 944 | * Carrega e Cria a tag ICMSSN [N10c] |
||
| 945 | * N10c|orig|CSOSN|pCredSN|vCredICMSSN| |
||
| 946 | * @param stdClass $std |
||
| 947 | */ |
||
| 948 | protected function n10cEntity($std) |
||
| 952 | |||
| 953 | /** |
||
| 954 | * Carrega e Cria a tag ICMSSN [N10d] |
||
| 955 | * N10d|orig|CSOSN| |
||
| 956 | * @param stdClass $std |
||
| 957 | */ |
||
| 958 | protected function n10dEntity($std) |
||
| 962 | |||
| 963 | |||
| 964 | /** |
||
| 965 | * Carrega e Cria a tag ICMSSN [N10e] |
||
| 966 | * N10e|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|pCredSN|vCredICMSSN| |
||
| 967 | * |
||
| 968 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 969 | * N10e|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|pCredSN|vCredICMSSN|pCredSN|vCredICMSSN| |
||
| 970 | * @param stdClass $std |
||
| 971 | */ |
||
| 972 | protected function n10eEntity($std) |
||
| 976 | /** |
||
| 977 | * Carrega e Cria a tag ICMSSN [N10f] |
||
| 978 | * N10f|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST| |
||
| 979 | * |
||
| 980 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 981 | * N10f|orig|CSOSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST| |
||
| 982 | * @param stdClass $std |
||
| 983 | */ |
||
| 984 | protected function n10fEntity($std) |
||
| 988 | |||
| 989 | /** |
||
| 990 | * Carrega e Cria a tag ICMSSN [N10g] |
||
| 991 | * N10g|orig|CSOSN|vBCSTRet|vICMSSTRet| |
||
| 992 | * |
||
| 993 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 994 | * N10g|orig|CSOSN|vBCSTRet|pST|vICMSSTRet|vBCFCPSTRet|pFCPSTRet|vFCPSTRet| |
||
| 995 | * @param stdClass $std |
||
| 996 | */ |
||
| 997 | protected function n10gEntity($std) |
||
| 1001 | |||
| 1002 | /** |
||
| 1003 | * Carrega e Cria a tag ICMSSN [N10h] |
||
| 1004 | * N10h|orig|CSOSN|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|pCredSN|vCredICMSSN| |
||
| 1005 | * |
||
| 1006 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 1007 | * N10h|orig|CSOSN|modBC|vBC|pRedBC|pICMS|vICMS|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCFCPST|pFCPST|vFCPST|pCredSN|vCredICMSSN| |
||
| 1008 | * @param stdClass $std |
||
| 1009 | */ |
||
| 1010 | protected function n10hEntity($std) |
||
| 1014 | |||
| 1015 | /** |
||
| 1016 | * Nsn|orig|CSOSN|modBC|vBC|pRedBC|pICMS|vICMS|pCredSN|vCredICMSSN|modBCST|pMVAST|pRedBCST|vBCST|pICMSST|vICMSST|vBCSTRet|vICMSSTRet|vBCFCPST|pFCPST|vFCPST| |
||
| 1017 | * @param \stdClass $std |
||
| 1018 | */ |
||
| 1019 | protected function buildNSNEntity($std) |
||
| 1024 | |||
| 1025 | /** |
||
| 1026 | * Carrega e Cria a tag ICMSUFDest [NA] |
||
| 1027 | * NA|vBCUFDest|pFCPUFDest|pICMSUFDest|pICMSInter|pICMSInterPart|vFCPUFDest|vICMSUFDest|vICMSFRemet| |
||
| 1028 | * @param stdClass $std |
||
| 1029 | */ |
||
| 1030 | protected function naEntity($std) |
||
| 1034 | |||
| 1035 | /** |
||
| 1036 | * Cria a tag ICMSUFDest [NA] |
||
| 1037 | * @param stdClass $std |
||
| 1038 | */ |
||
| 1039 | protected function buildNAEntity($std) |
||
| 1044 | |||
| 1045 | /** |
||
| 1046 | * Carrega a tag IPI [O] |
||
| 1047 | * O|clEnq|CNPJProd|cSelo|qSelo|cEnq| |
||
| 1048 | * @param stdClass $std |
||
| 1049 | */ |
||
| 1050 | protected function oEntity($std) |
||
| 1061 | |||
| 1062 | /** |
||
| 1063 | * Carrega e cria a tag IPI [O07] |
||
| 1064 | * O07|CST|vIPI| |
||
| 1065 | * @param stdClass $std |
||
| 1066 | */ |
||
| 1067 | protected function o07Entity($std) |
||
| 1072 | |||
| 1073 | /** |
||
| 1074 | * Carrega e cria a tag IPI [O08] |
||
| 1075 | * O08|CST| |
||
| 1076 | * @param stdClass $std |
||
| 1077 | */ |
||
| 1078 | protected function o08Entity($std) |
||
| 1083 | |||
| 1084 | /** |
||
| 1085 | * Carrega e cria a tag IPI [O10] |
||
| 1086 | * O10|vBC|pIPI| |
||
| 1087 | * @param stdClass $std |
||
| 1088 | */ |
||
| 1089 | protected function o10Entity($std) |
||
| 1095 | |||
| 1096 | /** |
||
| 1097 | * Carrega e cria a tag IPI [O11] |
||
| 1098 | * O11|qUnid|vUnid| |
||
| 1099 | * @param stdClass $std |
||
| 1100 | */ |
||
| 1101 | protected function o11Entity($std) |
||
| 1107 | |||
| 1108 | /** |
||
| 1109 | * Cria a tag IPI [O] |
||
| 1110 | * Oxx|cst|clEnq|cnpjProd|cSelo|qSelo|cEnq|vBC|pIPI|qUnid|vUnid|vIPI| |
||
| 1111 | */ |
||
| 1112 | protected function buildOEntity() |
||
| 1116 | |||
| 1117 | /** |
||
| 1118 | * Cria a tag II [P] |
||
| 1119 | * P|vBC|vDespAdu|vII|vIOF| |
||
| 1120 | * @param stdClass $std |
||
| 1121 | */ |
||
| 1122 | protected function pEntity($std) |
||
| 1127 | |||
| 1128 | /** |
||
| 1129 | * Carrega a tag PIS [Q] |
||
| 1130 | * Q| |
||
| 1131 | * @param stdClass $std |
||
| 1132 | */ |
||
| 1133 | protected function qEntity($std) |
||
| 1144 | |||
| 1145 | /** |
||
| 1146 | * Carrega e cria a tag PIS [Q02] |
||
| 1147 | * Q02|CST|vBC|pPIS|vPIS| |
||
| 1148 | * @param stdClass $std |
||
| 1149 | */ |
||
| 1150 | protected function q02Entity($std) |
||
| 1158 | |||
| 1159 | /** |
||
| 1160 | * Carrega e cria a tag PIS [Q03] |
||
| 1161 | * Q03|CST|qBCProd|vAliqProd|vPIS| |
||
| 1162 | * @param stdClass $std |
||
| 1163 | */ |
||
| 1164 | protected function q03Entity($std) |
||
| 1172 | |||
| 1173 | /** |
||
| 1174 | * Carrega e cria a tag PIS [Q04] |
||
| 1175 | * Q04|CST| |
||
| 1176 | * @param stdClass $std |
||
| 1177 | */ |
||
| 1178 | protected function q04Entity($std) |
||
| 1183 | |||
| 1184 | /** |
||
| 1185 | * Carrega e cria a tag PIS [Q05] |
||
| 1186 | * Q05|CST|vPIS| |
||
| 1187 | * @param stdClass $std |
||
| 1188 | */ |
||
| 1189 | protected function q05Entity($std) |
||
| 1195 | |||
| 1196 | /** |
||
| 1197 | * Carrega e cria a tag PIS [Q07] |
||
| 1198 | * Q07|vBC|pPIS| |
||
| 1199 | * @param stdClass $std |
||
| 1200 | */ |
||
| 1201 | protected function q07Entity($std) |
||
| 1207 | |||
| 1208 | /** |
||
| 1209 | * Carrega e cria a tag PIS [Q10] |
||
| 1210 | * Q10|qBCProd|vAliqProd| |
||
| 1211 | * @param stdClass $std |
||
| 1212 | */ |
||
| 1213 | protected function q10Entity($std) |
||
| 1219 | |||
| 1220 | /** |
||
| 1221 | * Cria a tag PIS [Q] |
||
| 1222 | * Qxx|CST|vBC|pPIS|vPIS|qBCProd|vAliqProd| |
||
| 1223 | */ |
||
| 1224 | protected function buildQEntity() |
||
| 1228 | |||
| 1229 | /** |
||
| 1230 | * Carrega tag PISST [R] |
||
| 1231 | * R|vPIS| |
||
| 1232 | * @param stdClass $std |
||
| 1233 | */ |
||
| 1234 | protected function rEntity($std) |
||
| 1245 | |||
| 1246 | /** |
||
| 1247 | * Carrega e cria tag PISST [R02] |
||
| 1248 | * R02|vBC|pPIS| |
||
| 1249 | * @param stdClass $std |
||
| 1250 | */ |
||
| 1251 | protected function r02Entity($std) |
||
| 1257 | |||
| 1258 | /** |
||
| 1259 | * Carrega e cria tag PISST [R04] |
||
| 1260 | * R04|qBCProd|vAliqProd|vPIS| |
||
| 1261 | * @param stdClass $std |
||
| 1262 | */ |
||
| 1263 | protected function r04Entity($std) |
||
| 1270 | |||
| 1271 | /** |
||
| 1272 | * Cria a tag PISST |
||
| 1273 | * Rxx|vBC|pPIS|qBCProd|vAliqProd|vPIS| |
||
| 1274 | */ |
||
| 1275 | protected function buildREntity() |
||
| 1279 | |||
| 1280 | /** |
||
| 1281 | * Carrega COFINS [S] |
||
| 1282 | * S| |
||
| 1283 | * @param stdClass $std |
||
| 1284 | */ |
||
| 1285 | protected function sEntity($std) |
||
| 1296 | |||
| 1297 | /** |
||
| 1298 | * Carrega COFINS [S02] |
||
| 1299 | * S02|CST|vBC|pCOFINS|vCOFINS| |
||
| 1300 | * @param stdClass $std |
||
| 1301 | */ |
||
| 1302 | protected function s02Entity($std) |
||
| 1310 | |||
| 1311 | /** |
||
| 1312 | * Carrega COFINS [S03] |
||
| 1313 | * S03|CST|qBCProd|vAliqProd|vCOFINS| |
||
| 1314 | * @param stdClass $std |
||
| 1315 | */ |
||
| 1316 | protected function s03Entity($std) |
||
| 1324 | |||
| 1325 | /** |
||
| 1326 | * Carrega COFINS [S04] |
||
| 1327 | * S04|CST| |
||
| 1328 | * @param stdClass $std |
||
| 1329 | */ |
||
| 1330 | protected function s04Entity($std) |
||
| 1335 | |||
| 1336 | /** |
||
| 1337 | * Carrega COFINS [S05] |
||
| 1338 | * S05|CST|vCOFINS| |
||
| 1339 | * @param stdClass $std |
||
| 1340 | */ |
||
| 1341 | protected function s05Entity($std) |
||
| 1346 | |||
| 1347 | /** |
||
| 1348 | * Carrega e cria a tag COFINS [S07] |
||
| 1349 | * S07|vBC|pCOFINS| |
||
| 1350 | * @param stdClass $std |
||
| 1351 | */ |
||
| 1352 | protected function s07Entity($std) |
||
| 1358 | |||
| 1359 | /** |
||
| 1360 | * Carrega e cria a tag COFINS [S09] |
||
| 1361 | * S09|qBCProd|vAliqProd| |
||
| 1362 | * @param stdClass $std |
||
| 1363 | */ |
||
| 1364 | protected function s09Entity($std) |
||
| 1370 | |||
| 1371 | /** |
||
| 1372 | * Cria a tag COFINS |
||
| 1373 | * Sxx|CST|vBC|pCOFINS|vCOFINS|qBCProd|vAliqProd| |
||
| 1374 | */ |
||
| 1375 | protected function buildSEntity() |
||
| 1379 | |||
| 1380 | /** |
||
| 1381 | * COFINSST [T] |
||
| 1382 | * T|vCOFINS| |
||
| 1383 | * @param stdClass $std |
||
| 1384 | */ |
||
| 1385 | protected function tEntity($std) |
||
| 1396 | |||
| 1397 | /** |
||
| 1398 | * Carrega e cria COFINSST [T02] |
||
| 1399 | * T02|vBC|pCOFINS| |
||
| 1400 | * @param stdClass $std |
||
| 1401 | */ |
||
| 1402 | protected function t02Entity($std) |
||
| 1408 | |||
| 1409 | /** |
||
| 1410 | * Carrega e cria COFINSST [T04] |
||
| 1411 | * T04|qBCProd|vAliqProd| |
||
| 1412 | * @param stdClass $std |
||
| 1413 | */ |
||
| 1414 | protected function t04Entity($std) |
||
| 1420 | |||
| 1421 | /** |
||
| 1422 | * Cria a tag COFINSST |
||
| 1423 | * Txx|vBC|pCOFINS|qBCProd|vAliqProd|vCOFINS| |
||
| 1424 | */ |
||
| 1425 | protected function buildTEntity() |
||
| 1430 | |||
| 1431 | /** |
||
| 1432 | * Cria a tag ISSQN [U] |
||
| 1433 | * U|vBC|vAliq|vISSQN|cMunFG|cListServ|vDeducao|vOutro|vDescIncond |
||
| 1434 | * |vDescCond|vISSRet|indISS|cServico|cMun|cPais|nProcesso|indIncentivo| |
||
| 1435 | * @param stdClass $std |
||
| 1436 | */ |
||
| 1437 | protected function uEntity($std) |
||
| 1442 | |||
| 1443 | /** |
||
| 1444 | * Cria a tag tagimpostoDevol [UA] |
||
| 1445 | * UA|pDevol|vIPIDevol| |
||
| 1446 | * @param stdClass $std |
||
| 1447 | */ |
||
| 1448 | protected function uaEntity($std) |
||
| 1453 | |||
| 1454 | /** |
||
| 1455 | * Linha W [W] |
||
| 1456 | * W| |
||
| 1457 | * @param stdClass $std |
||
| 1458 | */ |
||
| 1459 | protected function wEntity($std) |
||
| 1463 | |||
| 1464 | /** |
||
| 1465 | * Cria tag ICMSTot [W02] |
||
| 1466 | * W02|vBC|vICMS|vICMSDeson|vBCST|vST|vProd|vFrete|vSeg|vDesc|vII|vIPI|vPIS|vCOFINS|vOutro|vNF|vTotTrib| |
||
| 1467 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 1468 | * W02|vBC|vICMS|vICMSDeson|vFCP|vBCST|vST|vFCPST|vFCPSTRet|vProd|vFrete|vSeg|vDesc|vII|vIPI|vIPIDevol|vPIS|vCOFINS|vOutro|vNF|vTotTrib| |
||
| 1469 | * @param stdClass $std |
||
| 1470 | */ |
||
| 1471 | protected function w02Entity($std) |
||
| 1475 | |||
| 1476 | |||
| 1477 | /** |
||
| 1478 | * Cria a tag ISSQNTot [W17] |
||
| 1479 | * W17|vServ|vBC|vISS|vPIS|vCOFINS|dCompet|vDeducao|vOutro|vDescIncond |
||
| 1480 | * |vDescCond|vISSRet|cRegTrib| |
||
| 1481 | * @param stdClass $std |
||
| 1482 | */ |
||
| 1483 | protected function w17Entity($std) |
||
| 1487 | |||
| 1488 | /** |
||
| 1489 | * Cria a tag retTrib [W23] |
||
| 1490 | * W23|vRetPIS|vRetCOFINS|vRetCSLL|vBCIRRF|vIRRF|vBCRetPrev|vRetPrev| |
||
| 1491 | * @param stdClass $std |
||
| 1492 | */ |
||
| 1493 | protected function w23Entity($std) |
||
| 1497 | |||
| 1498 | /** |
||
| 1499 | * Cria a tag transp [X] |
||
| 1500 | * X|modFrete| |
||
| 1501 | * @param stdClass $std |
||
| 1502 | */ |
||
| 1503 | protected function xEntity($std) |
||
| 1507 | |||
| 1508 | /** |
||
| 1509 | * Carrega endereço tranpotadora [X03] |
||
| 1510 | * X03|xNome|IE|xEnder|xMun|UF| |
||
| 1511 | * @param stdClass $std |
||
| 1512 | */ |
||
| 1513 | protected function x03Entity($std) |
||
| 1517 | |||
| 1518 | /** |
||
| 1519 | * Carrega e cria transp com CNPJ [X04] |
||
| 1520 | * X04|CNPJ| |
||
| 1521 | * @param stdClass $std |
||
| 1522 | */ |
||
| 1523 | protected function x04Entity($std) |
||
| 1530 | |||
| 1531 | /** |
||
| 1532 | * Carrega e cria transp com CPF [X05] |
||
| 1533 | * X05|CPF| |
||
| 1534 | * @param stdClass $std |
||
| 1535 | */ |
||
| 1536 | protected function x05Entity($std) |
||
| 1543 | |||
| 1544 | /** |
||
| 1545 | * Carrega impostos transportadora [X11] |
||
| 1546 | * X11|vServ|vBCRet|pICMSRet|vICMSRet|CFOP|cMunFG| |
||
| 1547 | * @param stdClass $std |
||
| 1548 | */ |
||
| 1549 | protected function x11Entity($std) |
||
| 1553 | |||
| 1554 | /** |
||
| 1555 | * Cria a tag veicTransp [X18] |
||
| 1556 | * X18|placa|UF|RNTC| |
||
| 1557 | * @param stdClass $std |
||
| 1558 | */ |
||
| 1559 | protected function x18Entity($std) |
||
| 1563 | |||
| 1564 | /** |
||
| 1565 | * Cria a tag reboque [X22] |
||
| 1566 | * X22|placa|UF|RNTC|vagao|balsa| |
||
| 1567 | * @param stdClass $std |
||
| 1568 | */ |
||
| 1569 | protected function x22Entity($std) |
||
| 1573 | |||
| 1574 | /** |
||
| 1575 | * Carrega volumes [X26] |
||
| 1576 | * X26|qVol|esp|marca|nVol|pesoL|pesoB| |
||
| 1577 | * @param stdClass $std |
||
| 1578 | */ |
||
| 1579 | protected function x26Entity($std) |
||
| 1585 | |||
| 1586 | /** |
||
| 1587 | * Carrega o lacre [X33] |
||
| 1588 | * X33|nLacre| |
||
| 1589 | * @param stdClass $std |
||
| 1590 | */ |
||
| 1591 | protected function x33Entity($std) |
||
| 1596 | |||
| 1597 | /** |
||
| 1598 | * Cria a tag vol |
||
| 1599 | * @param stdClass $std |
||
| 1600 | */ |
||
| 1601 | protected function buildVolEntity($std) |
||
| 1605 | |||
| 1606 | /** |
||
| 1607 | * yEntity [Y] |
||
| 1608 | * Y| |
||
| 1609 | * NOTA: Ajustado para NT2016_002_v1.30 |
||
| 1610 | * Y|vTroco| |
||
| 1611 | * @param stdClass $std |
||
| 1612 | */ |
||
| 1613 | protected function yEntity($std) |
||
| 1617 | |||
| 1618 | |||
| 1619 | /** |
||
| 1620 | * Cria as tags pag e card [YA] |
||
| 1621 | * YA|tPag|vPag|CNPJ|tBand|cAut|tpIntegra| |
||
| 1622 | * @param stdClass $std |
||
| 1623 | */ |
||
| 1624 | protected function yaEntity($std) |
||
| 1628 | |||
| 1629 | /** |
||
| 1630 | * Cria a tag fat [Y02] |
||
| 1631 | * Y02|nFat|vOrig|vDesc|vLiq| |
||
| 1632 | * @param stdClass $std |
||
| 1633 | */ |
||
| 1634 | protected function y02Entity($std) |
||
| 1638 | |||
| 1639 | /** |
||
| 1640 | * Cria a tag dup [Y07] |
||
| 1641 | * Y07|nDup|dVenc|vDup| |
||
| 1642 | * @param stdClass $std |
||
| 1643 | */ |
||
| 1644 | protected function y07Entity($std) |
||
| 1648 | |||
| 1649 | /** |
||
| 1650 | * Cria a a tag infAdic [Z] |
||
| 1651 | * Z|infAdFisco|infCpl| |
||
| 1652 | * @param stdClass $std |
||
| 1653 | */ |
||
| 1654 | protected function zEntity($std) |
||
| 1658 | |||
| 1659 | /** |
||
| 1660 | * Cria a tag obsCont [Z04] |
||
| 1661 | * Z04|xCampo|xTexto| |
||
| 1662 | * @param stdClass $std |
||
| 1663 | */ |
||
| 1664 | protected function z04Entity($std) |
||
| 1668 | |||
| 1669 | /** |
||
| 1670 | * Cria a tag obsFisco [Z07] |
||
| 1671 | * Z07|xCampo|xTexto| |
||
| 1672 | * @param stdClass $std |
||
| 1673 | */ |
||
| 1674 | protected function z07Entity($std) |
||
| 1678 | |||
| 1679 | /** |
||
| 1680 | * Cria a tag procRef [Z10] |
||
| 1681 | * Z10|nProc|indProc| |
||
| 1682 | * @param stdClass $std |
||
| 1683 | */ |
||
| 1684 | protected function z10Entity($std) |
||
| 1688 | |||
| 1689 | /** |
||
| 1690 | * Cria a tag exporta [ZA] |
||
| 1691 | * ZA|UFSaidaPais|xLocExporta|xLocDespacho| |
||
| 1692 | * @param stdClass $std |
||
| 1693 | */ |
||
| 1694 | protected function zaEntity($std) |
||
| 1698 | |||
| 1699 | /** |
||
| 1700 | * Cria a tag compra [ZB] |
||
| 1701 | * ZB|xNEmp|xPed|xCont| |
||
| 1702 | * @param stdClass $std |
||
| 1703 | */ |
||
| 1704 | protected function zbEntity($std) |
||
| 1708 | |||
| 1709 | /** |
||
| 1710 | * Cria a tag cana [ZC] |
||
| 1711 | * ZC|safra|ref|qTotMes|qTotAnt|qTotGer|vFor|vTotDed|vLiqFor| |
||
| 1712 | * @param stdClass $std |
||
| 1713 | */ |
||
| 1714 | protected function zcEntity($std) |
||
| 1718 | |||
| 1719 | /** |
||
| 1720 | * Cria a tag forDia [ZC04] |
||
| 1721 | * ZC04|dia|qtde| |
||
| 1722 | * @param stdClass $std |
||
| 1723 | */ |
||
| 1724 | protected function zc04Entity($std) |
||
| 1728 | |||
| 1729 | /** |
||
| 1730 | * Cria a tag deduc [ZC10] |
||
| 1731 | * ZC10|xDed|vDed| |
||
| 1732 | * @param stdClass $std |
||
| 1733 | */ |
||
| 1734 | protected function zc10Entity($std) |
||
| 1738 | |||
| 1739 | /** |
||
| 1740 | * Cria a tag infNFeSupl com o qrCode para impressão da DANFCE [ZX01] |
||
| 1741 | * ZX01|qrcode| |
||
| 1742 | * NOTA: Ajustado para NT2016_002_v1.20 |
||
| 1743 | * ZX01|qrcode|urlChave| |
||
| 1744 | * @param stdClass $std |
||
| 1745 | */ |
||
| 1746 | protected function zx01Entity($std) |
||
| 1750 | } |
||
| 1751 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..