Example #1
0
 /**
  * @param string $connectionString
  * @param int $maxConnections
  * @param float|int $connectTimeout
  */
 public function __construct(string $connectionString, int $maxConnections = self::DEFAULT_MAX_CONNECTIONS, float $connectTimeout = self::DEFAULT_CONNECT_TIMEOUT)
 {
     parent::__construct();
     $this->connectionString = $connectionString;
     $this->connectTimeout = $connectTimeout;
     $this->maxConnections = $maxConnections;
     if (1 > $this->maxConnections) {
         $this->maxConnections = 1;
     }
 }
Example #2
0
 /**
  * @param \Icicle\Postgres\Connection $connection
  */
 public function addConnection(Connection $connection)
 {
     parent::addConnection($connection);
 }