| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function connect(CredentialInterface $credentials) |
||
| 36 | { |
||
| 37 | try { |
||
| 38 | $this->client = $this->clientFactory->create($credentials->getAll()); |
||
| 39 | $this->connected = $this->client->login($credentials->username, $credentials->password) ? true : false; |
||
| 40 | } catch (\Exception $exception) { |
||
| 41 | $this->connected = false; |
||
| 42 | } |
||
| 43 | return $this->connected; |
||
| 44 | } |
||
| 70 |