| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function getRetornoDados($identificacao, $isFile = false) { |
||
| 41 | $this->apiCliente->addAuthorization(); |
||
| 42 | if ($isFile) { |
||
| 43 | $this->apiCliente->enviarArquivo('retornos', $identificacao); |
||
| 44 | } else { |
||
| 45 | $this->apiCliente->get('retornos/' . $identificacao); |
||
| 46 | } |
||
| 47 | |||
| 48 | $resposta = $this->apiCliente->getResposta(true); |
||
| 49 | |||
| 50 | $respostaEntidade = new \OBRSDK\Entidades\Retornos(); |
||
| 51 | $respostaEntidade->setAtributos($resposta); |
||
|
|
|||
| 52 | |||
| 53 | return $respostaEntidade; |
||
| 54 | } |
||
| 57 |