public function getConnection()
    {
        if ($chosenConn = $this->connections->pop()) {
            $this->connections->push($chosenConn);

            return $chosenConn;
        }
    }
public function getConnection()
    {
        if ($chosenConn = $this->connections->pop()) {
            $this->connections->push($chosenConn);

            return $chosenConn;
        }
    }
public function getConnection ( ) { if ( $ chosenConn = $ this -> connections -> pop ( ) ) { $ this -> connections -> push ( $ chosenConn ) ; return $ chosenConn ; } }
Gets a connection from the pool. It will cycle through the existent
connections.

@return Connection
Gets a connection from the pool . It will cycle through the existent connections .