private function readAutenticacao(Transaction $transaction) { $authentication = new Authentication(); $authentication->setCode($this->getValue('//c:transacao/c:autenticacao/c:codigo')); $authentication->setMessage($this->getValue('//c:transacao/c:autenticacao/c:mensagem')); $authentication->setDateTime($this->getValue('//c:transacao/c:autenticacao/c:data-hora')); $authentication->setTotal($this->getValue('//c:transacao/c:autenticacao/c:valor')); $authentication->setEci($this->getValue('//c:transacao/c:autenticacao/c:eci')); $transaction->setAuthentication($authentication); }
/** * {@inheritDoc} */ protected function setUp() { $authentication = new Authentication(); $authentication->setCode(2); $authentication->setMessage('Autenticada com sucesso'); $authentication->setDateTime('2011-12-08T10:44:47.311-02:00'); $authentication->setTotal('1000'); $authentication->setEci(5); $this->authentication = $authentication; }