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