connectionString = $connectionString; $this->connectTimeout = $connectTimeout; $this->maxConnections = $maxConnections; if (1 > $this->maxConnections) { $this->maxConnections = 1; } } /** * {@inheritdoc} */ protected function createConnection(): Promise { return connect($this->connectionString, $this->connectTimeout); } /** * {@inheritdoc} */ public function getMaxConnections(): int { return $this->maxConnections; } }