| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function getAuthorization() |
||
| 54 | { |
||
| 55 | if(!empty($this->key)) |
||
| 56 | return $this->key; |
||
| 57 | |||
| 58 | $response = $this->_loginApi->login( |
||
| 59 | (new LoginRequest()) |
||
| 60 | ->setPessoaId($this->pessoaId) |
||
| 61 | ->setSenha($this->password) |
||
| 62 | ->setCpfCnpj($this->user) |
||
| 63 | ); |
||
| 64 | return $response->getPessoa()->getKey(); |
||
| 65 | } |
||
| 66 | |||
| 67 | } |