/** * @test */ public function setArp() { $this->authorization->setArp(123456); $this->assertEquals(123456, $this->authorization->getArp()); }
private function readAutorizacao(Transaction $transaction) { $authorization = new Authorization(); $authorization->setCode($this->getValue('//c:transacao/c:autorizacao/c:codigo')); $authorization->setMessage($this->getValue('//c:transacao/c:autorizacao/c:mensagem')); $authorization->setDateTime($this->getValue('//c:transacao/c:autorizacao/c:data-hora')); $authorization->setTotal($this->getValue('//c:transacao/c:autorizacao/c:valor')); $authorization->setLr($this->getValue('//c:transacao/c:autorizacao/c:lr')); $authorization->setArp($this->getValue('//c:transacao/c:autorizacao/c:arp')); $authorization->setNsu($this->getValue('//c:transacao/c:autorizacao/c:nsu')); $transaction->setAuthorization($authorization); }