Property | Type | Description | |
---|---|---|---|
$connections | SplQueue | Opened connections. |
Method | Description | |
---|---|---|
__construct ( ) | Constructs a connection pool. | |
addConnection ( |
Adds a new connection to the pool. | |
getConnection ( ) : |
Gets a connection from the pool. It will cycle through the existent connections. |
public addConnection ( |
||
$conn | The actual connection that will be added to the pool. | |
return | boolean | Success |
public getConnection ( ) : |
||
return |