From 130bcb5c10a11a331cfcf1bc9fe1ddc147d18648 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Wed, 18 Jul 2018 09:48:04 -0500 Subject: [PATCH] Remove ConnectionConfig::getConnectionString() --- src/ConnectionConfig.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/ConnectionConfig.php b/src/ConnectionConfig.php index 62bb59b..ed796aa 100644 --- a/src/ConnectionConfig.php +++ b/src/ConnectionConfig.php @@ -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;