public function tagautXML($cnpj = '', $cpf = '')
{
$identificador = 'G50 <autXML> - ';
if (intval($this->versao, 10) > 2) {
$autXML = $this->dom->createElement("autXML");
if ($cnpj != '') {
$this->dom->addChild($autXML, "CNPJ", $cnpj, true, $identificador . "CNPJ do Cliente Autorizado");
} else {
$this->dom->addChild($autXML, "CPF", $cpf, true, $identificador . "CPF do Cliente Autorizado");
}
$this->aAutXML[] = $autXML;
return $autXML;
} else {
return array();
}
}
/** * ga03Entity * Cria a tag autXML com CPF * * @param array $aCampos */ protected function ga03Entity($aCampos) { //GA03|CPF| $this->make->tagautXML('', $aCampos[1]); }