connectionString = $connectionString; $this->maxConnections = $maxConnections; if ($this->maxConnections < 1) { throw new \Error("Pool must contain at least one connection"); } } /** * {@inheritdoc} */ protected function createConnection(): Promise { return connect($this->connectionString); } /** * {@inheritdoc} */ public function getMaxConnections(): int { return $this->maxConnections; } }