| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function getRetornoDados($identificacao, $isFile = false) { |
||
| 33 | $this->apiCliente->addAuthorization(); |
||
| 34 | if ($isFile) { |
||
| 35 | $this->apiCliente->enviarArquivo('retornos', $identificacao); |
||
| 36 | } else { |
||
| 37 | $this->apiCliente->get('retornos/' . $identificacao); |
||
| 38 | } |
||
| 39 | |||
| 40 | $resposta = $this->apiCliente->getRespostaArray(); |
||
| 41 | |||
| 42 | $respostaEntidade = new \OBRSDK\Entidades\Retornos(); |
||
| 43 | $respostaEntidade->setAtributos($resposta); |
||
| 44 | |||
| 45 | return $respostaEntidade; |
||
| 46 | } |
||
| 49 |