src/CfdiUtils/Certificado/NodeCertificado.php
public function obtain(): Certificado
    {
        $temporaryFile = TemporaryFile::create();
        // the temporary name was created
        try {
            $this->save($temporaryFile->getPath());
            $certificado = new Certificado($temporaryFile->getPath());
            return $certificado;
        } finally {
            $temporaryFile->remove();
        }
    }
public function obtain(): Certificado
    {
        $temporaryFile = TemporaryFile::create();
        // the temporary name was created
        try {
            $this->save($temporaryFile->getPath());
            $certificado = new Certificado($temporaryFile->getPath());
            return $certificado;
        } finally {
            $temporaryFile->remove();
        }
    }
public function obtain ( ) : Certificado { $ temporaryFile = TemporaryFile :: create ( ) ; // the temporary name was created try { $ this -> save ( $ temporaryFile -> getPath ( ) ) ; $ certificado = new Certificado ( $ temporaryFile -> getPath ( ) ) ; return $ certificado ; } finally { $ temporaryFile -> remove ( ) ; } }
Return a Certificado object from the Comprobante->Certificado attribute
The temporary certificate is stored into a temporary folder and removed
after the certificado is loaded. If you need to persist the certificate
use the saveCertificado method instead

@see save

@return Certificado
Return a Certificado object from the Comprobante - > Certificado attribute The temporary certificate is stored into a temporary folder and removed after the certificado is loaded . If you need to persist the certificate use the saveCertificado method instead