Avoid calling `getUser` and `getPassword` multiple times. I suggest:

```php
$user     = $options->getUser();
$password = $options->getPassword();

if ($user && $password) {
    $connectionString .= $user . ':' . $password . '@'; 
}
```