Remove ConnectionConfig::getConnectionString()

This commit is contained in:
Aaron Piotrowski 2018-07-18 09:48:04 -05:00
parent 37d947b422
commit 130bcb5c10
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -66,28 +66,6 @@ abstract class ConnectionConfig
$this->database = $database;
}
public function getConnectionString(): string
{
$chunks = [
"host=" . $this->host,
"port=" . $this->port,
];
if ($this->user !== null) {
$chunks[] = "user=" . $this->user;
}
if ($this->password !== null) {
$chunks[] = "password=" . $this->password;
}
if ($this->database !== null) {
$chunks[] = "db=" . $this->database;
}
return \implode(" ", $chunks);
}
final public function getHost(): string
{
return $this->host;